julianhyde commented on code in PR #3009:
URL: https://github.com/apache/calcite/pull/3009#discussion_r1065237286


##########
babel/src/test/resources/sql/big-query.iq:
##########
@@ -1691,16 +1691,38 @@ SELECT TIMESTAMP_DIFF("2001-02-01 01:00:00", 
"2001-02-01 00:00:01", HOUR) AS neg
 #     corresponding Gregorian calendar year.
 #
 # Returns DATE
-
-!if (false) {
-SELECT DATE_TRUNC(DATE '2008-12-25', MONTH) AS month;
+WITH Dates AS (
+  SELECT DATE_TRUNC(DATE '2008-12-25', YEAR) as d UNION ALL

Review Comment:
   can you add an extra column, say `'year' as frame, ` in row 1, 'isoyear' in 
row 2, just in case the rows get reordered.



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

Reply via email to