zclllyybb commented on code in PR #59206:
URL: https://github.com/apache/doris/pull/59206#discussion_r2677784190


##########
be/src/vec/functions/function_datetime_floor_ceil.cpp:
##########
@@ -577,8 +586,38 @@ class FunctionDateTimeFloorCeil : public IFunction {
     // ts_res should be initialized with the ts_origin.
     template <Int32 const_period = 0>
     static bool time_round_two_args(const DateValueType& ts_arg, const Int32 
period,
-                                    DateValueType& ts_origin) {
-        DateValueType& ts_res = ts_origin;
+                                    DateValueType& ts_origin, FunctionContext* 
context) {
+        /* For TimestampTzValue on date-based units, convert UTC to local time 
first, eg:

Review Comment:
   这个行为有竞品对比吗?



-- 
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]

Reply via email to