You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/11/28 13:41:40 UTC
[GitHub] [doris] mrhhsg commented on a diff in pull request #14616: [improvement](function) add timezone cache for convert_tz
mrhhsg commented on code in PR #14616:
URL: https://github.com/apache/doris/pull/14616#discussion_r1033556335
##########
be/src/vec/functions/function_convert_tz.h:
##########
@@ -161,13 +180,16 @@ class FunctionConvertTZ : public IFunction {
assert_cast<const ColumnString*>(argument_columns[2].get()),
assert_cast<ColumnDateTimeV2*>(result_column.get()),
assert_cast<ColumnUInt8*>(result_null_map_column.get())->get_data(),
- input_rows_count);
+ input_rows_count, _time_zone_cache);
block.get_by_position(result).column = ColumnNullable::create(
std::move(result_column), std::move(result_null_map_column));
}
return Status::OK();
}
+
+private:
+ std::map<StringRef, cctz::time_zone> _time_zone_cache;
Review Comment:
No. But the map is a separate for each thread
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org