Description
Currently, we support these field for EXTRACT: YEAR, QUARTER, MONTH, WEEK, DAY, DAYOFWEEK, HOUR, MINUTE, SECOND.
We also need support: EPOCH, CENTURY, MILLENNIUM, DECADE, MICROSECONDS, MILLISECONDS, DOW, ISODOW, DOY, TIMEZONE, TIMEZONE_M, TIMEZONE_H, JULIAN, ISOYEAR.
https://www.postgresql.org/docs/11/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT
Attachments
Issue Links
- is a clone of
-
SPARK-28017 Enhance DATE_TRUNC
- Resolved
- is cloned by
-
SPARK-28656 Support `millennium`, `century` and `decade` at `extract()`
- Resolved
- is related to
-
SPARK-23903 Add support for date extract
- Resolved
- links to