You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "olivrlee (via GitHub)" <gi...@apache.org> on 2023/06/08 20:35:14 UTC
[GitHub] [calcite] olivrlee commented on a diff in pull request #3248: [CALCITE-5757] Correct DATE_TRUNC return type and convert DATEs to TIMESTAMPs for DATETIME_TRUNC and TIMESTAMP_TRUNC for BigQuery
olivrlee commented on code in PR #3248:
URL: https://github.com/apache/calcite/pull/3248#discussion_r1223522353
##########
babel/src/test/resources/sql/big-query.iq:
##########
@@ -2462,6 +2462,14 @@ FROM Dates;
!ok
+# Show that the return type matches the operand type
+SELECT
+ DATE_TRUNC(TIMESTAMP "2008-12-25 15:30:00", MONTH) AS timestamp_result,
+ DATE_TRUNC(DATETIME "2008-12-25 15:30:00", MONTH) AS datetime_result;
+timestamp_result TIMESTAMP_WITH_LOCAL_TIME_ZONE NOT NULL
+datetime_result TIMESTAMP NOT NULL
+!type
Review Comment:
neat, I didnt know about `!type` in quidem tests
--
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@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org