You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "Mryange (via GitHub)" <gi...@apache.org> on 2023/06/02 03:04:21 UTC

[GitHub] [doris] Mryange commented on a diff in pull request #20247: [feature](datetime) "timediff" supports calculating microseconds.

Mryange commented on code in PR #20247:
URL: https://github.com/apache/doris/pull/20247#discussion_r1213868617


##########
gensrc/script/doris_builtins_functions.py:
##########
@@ -1036,13 +1036,13 @@
     [['timediff'], 'TIMEV2', ['DATETIMEV2', 'DATETIMEV2'], ''],
 
     [['datediff'], 'INT', ['DATETIMEV2', 'DATEV2'], ''],
-    [['timediff'], 'TIMEV2', ['DATETIMEV2', 'DATEV2'], ''],
+    [['timediff'], 'TIME', ['DATETIMEV2', 'DATEV2'], ''],

Review Comment:
   I think that timev2 should only be calculated when both types have microseconds.



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