Description
Function | Return Type | Description | Example | Result |
---|---|---|---|---|
date_part(text, timestamp) | double precision | Get subfield (equivalent to extract); see Section 9.9.1 | date_part('hour', timestamp '2001-02-16 20:38:40') | 20 |
We can replace it with extract(field from timestamp).
Attachments
Issue Links
- is a clone of
-
SPARK-28420 Date/Time Functions: date_part for intervals
- Resolved
- links to