druid/sql
Suneet Saldanha b1f38131af
Fix timestamp extract fn to match postgreSQL (#9337)
* Fix timestamp extract fn to match postgres

Update the timestamp extract function so that it matches the PostgreSQL docs.
Examples from the PostgreSQL docs were added as tests for DECADE, CENTURY
and MILLENIUM extraction.

There were bugs in CENTURY and MILLENIUM that were spotted because of intelliJ
inspections - 'Integer division in floating point context'

* Update CalciteQueryTest

* remove useless round

* mark integer division as an error
2020-02-12 15:39:19 -08:00
..
src Fix timestamp extract fn to match postgreSQL (#9337) 2020-02-12 15:39:19 -08:00
pom.xml Remove EasyMock dependency from CalciteTests. (#9310) 2020-02-04 22:10:17 -08:00