You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Uroš Bojanić (Jira)" <ji...@apache.org> on 2025/07/21 07:31:00 UTC

[jira] [Resolved] (SPARK-52898) Add TIMEs

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

Uroš Bojanić resolved SPARK-52898.
----------------------------------
    Resolution: Won't Do

Unlike the - operator, the + operator for 2 TIMEs is actually not in the SQL Standard. Closing this ticket, as we're not going to implement this.

> Add TIMEs
> ---------
>
>                 Key: SPARK-52898
>                 URL: https://issues.apache.org/jira/browse/SPARK-52898
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 4.1.0
>            Reporter: Uroš Bojanić
>            Priority: Major
>              Labels: pull-request-available
>
> h4. Syntax
> expr1 + expr2
> h4. Arguments
>  * expr1: A TIME expression.
>  * expr2: A TIME expression.
> h4. Returns
> The result is an INTERVAL HOUR TO SECOND
> h4. Examples
> {code:sql}
> > SELECT '12:30:41.123' + TIME'10:00:01';
> 0 22:30:42.123000000
> > SELECT typeof(TIME'16:00:10' + TIME'08:30:20');
>   interval hour to second
> {code}



--
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