[ 
https://issues.apache.org/jira/browse/SPARK-51553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Max Gekk resolved SPARK-51553.
------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

Issue resolved by pull request 50558
[https://github.com/apache/spark/pull/50558]

> 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
>             Fix For: 4.1.0
>
>
> 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: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to