You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2025/03/19 14:21:00 UTC
[jira] [Created] (SPARK-51553) Modify EXTRACT to support TIME data type
Max Gekk created SPARK-51553:
--------------------------------
Summary: 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
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org