Description
Currently extract function support following units YEAR, MONTH, DAY, HOUR, MINUTE, SECOND. Add support for more units: CENTURY, DECADE, DOW, DOY, EPOCH, MILLENNIUM, QUARTER, WEEK.
Definitions of these units is similar to Postgres: http://www.postgresql.org/docs/9.1/static/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT
Attachments
Issue Links
- depends upon
-
CALCITE-1239 Upgrade to avatica-1.8.0
- Closed
-
CALCITE-1179 Extend list of time units and time unit ranges
- Closed
- is depended upon by
-
DRILL-4550 Add support more time units in extract function
- Open
- relates to
-
CALCITE-1175 extract() from PostgreSQL timestamp column throws org.apache.calcite.sql.SqlSyntax$6: SPECIAL
- Closed
-
CALCITE-1613 Implement EXTRACT for time unit DOW, DOY; and fix CENTURY
- Closed
- links to