julianhyde commented on code in PR #3253:
URL: https://github.com/apache/calcite/pull/3253#discussion_r1224902007
##########
testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java:
##########
@@ -9641,6 +9641,12 @@ void testTimestampDiff(boolean coercionEnabled) {
"2015-01-01", "DATE NOT NULL");
f.checkScalar("date_trunc(date '2015-02-19', isoyear)",
"2014-12-29", "DATE NOT NULL");
+ f.checkScalar("date_trunc(date '2015-02-19', decade)",
Review Comment:
Add a comment that DECADE rolls down to 0 mod 10, CENTURY and MILLENNIUM
roll down to 1 mod 100 and 1 mod 1000. That behavior is surprising to some
people.
--
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]