jacktengg commented on code in PR #66761:
URL: https://github.com/apache/doris/pull/66761#discussion_r3869864439


##########
be/src/exprs/function/function_date_or_datetime_computation.h:
##########
@@ -1871,7 +2172,16 @@ class AddTimeImplBase {
             const auto& arg1 = left_data[index_check_const(i, 
cols_info[0].is_const)];
             const auto& arg2 = right_data[index_check_const(i, 
cols_info[1].is_const)];
 
-            if constexpr (PType == TYPE_DATETIMEV2 || PType == 
TYPE_TIMESTAMPTZ) {
+            if constexpr (PType == TYPE_TIMESTAMP_NS) {
+                auto result = arg1;
+                auto tv2 = static_cast<TimeValue::TimeType>(arg2);
+                TimeInterval interval(TimeUnit::MICROSECOND, tv2, IsNegative);

Review Comment:
   之前就有的问题,datetimev2就有这个问题,不在这个pr解决。



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