suneet-s commented on a change in pull request #9337: Fix timestamp extract fn 
to match postgreSQL
URL: https://github.com/apache/druid/pull/9337#discussion_r376823004
 
 

 ##########
 File path: sql/src/test/java/org/apache/druid/sql/calcite/CalciteQueryTest.java
 ##########
 @@ -7730,7 +7730,7 @@ public void 
testFilterOnTimeExtractWithVariousTimeUnits() throws Exception
           + "AND EXTRACT(ISODOW FROM __time) = 6\n"
           + "AND EXTRACT(ISOYEAR FROM __time) = 2000\n"
           + "AND EXTRACT(DECADE FROM __time) = 200\n"
-          + "AND EXTRACT(CENTURY FROM __time) = 21\n"
+          + "AND EXTRACT(CENTURY FROM __time) = 20\n"
           + "AND EXTRACT(MILLENNIUM FROM __time) = 2\n",
 
 Review comment:
   These values come from `BaseCalciteQueryTest#TIMESERIES_CONTEXT_DEFAULT` 
which is `2000-01-01T00:00:00Z`

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to