Support setting timezone for stream load and routine load (#1831)

This commit is contained in:
Mingyu Chen
2019-09-20 07:55:05 +08:00
committed by ZHAO Chun
parent 7bf02d0ae7
commit e8da855cd2
11 changed files with 423 additions and 228 deletions

View File

@ -344,6 +344,9 @@ Status StreamLoadAction::_process_put(HttpRequest* http_req, StreamLoadContext*
return Status::InvalidArgument("Invalid strict mode format. Must be bool type");
}
}
if (!http_req->header(HTTP_TIMEZONE).empty()) {
request.__set_timezone(http_req->header(HTTP_TIMEZONE));
}
// plan this load
TNetworkAddress master_addr = _exec_env->master_info()->network_address;

View File

@ -33,6 +33,7 @@ static const std::string HTTP_TIMEOUT = "timeout";
static const std::string HTTP_PARTITIONS = "partitions";
static const std::string HTTP_NEGATIVE = "negative";
static const std::string HTTP_STRICT_MODE = "strict_mode";
static const std::string HTTP_TIMEZONE = "timezone";
static const std::string HTTP_100_CONTINUE = "100-continue";