Support setting timezone for stream load and routine load (#1831)
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user