linrrzqqq commented on code in PR #70345:
URL: https://github.com/apache/doris/pull/70345#discussion_r4545593946
##########
be/src/exprs/aggregate/aggregate_function_python_udaf.cpp:
##########
@@ -217,6 +211,9 @@ Status AggregatePythonUDAF::open() {
_func_meta.input_types = argument_types;
_func_meta.return_type = _return_type;
_func_meta.client_type = PythonClientType::UDAF;
+ _func_meta.datetime_naive = PythonUDFMeta::uses_naive_datetime(_fn);
+ _func_meta.timezone = state->timezone();
Review Comment:
原本 be 的行为就是不对的,或者说很混乱,会导致很多问题,比如 10:00 进去,在 python 内部获取 hour 得到的反而是
2,这种行为就是不对的,升级过程中,只要不挂,结果错误应该是可以接受的
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]