Description
Function | Return Type | Description | Example | Result |
---|---|---|---|---|
date_part(text, interval) | double precision | Get subfield (equivalent to extract); see Section 9.9.1 | date_part('month', interval '2 years 3 months') | 3 |
We can replace it with extract(field from timestamp).
Attachments
Issue Links
- is cloned by
-
SPARK-28690 Date/Time Functions: date_part for timestamps
- Resolved
- links to