druid/processing
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 Forbid easily misused HashSet and HashMap constructors (#9165) 2020-02-07 10:44:09 +03:00