[
https://issues.apache.org/jira/browse/SPARK-51553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Max Gekk reassigned SPARK-51553:
--------------------------------
Assignee: Vinod KC
> Modify EXTRACT to support TIME data type
> ----------------------------------------
>
> Key: SPARK-51553
> URL: https://issues.apache.org/jira/browse/SPARK-51553
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 4.1.0
> Reporter: Max Gekk
> Assignee: Vinod KC
> Priority: Major
> Labels: pull-request-available
>
> The EXTRACT function returns a field of source.
> h4. Syntax
> {code:sql}
> extract(field FROM source)
> {code}
> h4. Arguments
> field: A keyword that selects which part of source should be extracted.
> source: A DATE, TIMESTAMP, TIME, or INTERVAL expression.
> h4. Returns
> If field is SECOND, a DECIMAL(8, 6). In all other cases, an INTEGER.
> Supported values of field when source is DATE, TIMESTAMP, or TIME:
> * HOUR, H, HOURS, HR, HRS: The hour field (0 - 23)
> * MINUTE, M, MIN, MINS, MINUTES: The minutes field (0 - 59)
> * SECOND, S, SEC, SECONDS, SECS: The seconds field, including fractional parts
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]