Max Gekk created SPARK-52693:
--------------------------------
Summary: Add day-time interval to time
Key: SPARK-52693
URL: https://issues.apache.org/jira/browse/SPARK-52693
Project: Spark
Issue Type: Sub-task
Components: SQL
Affects Versions: 4.1.0
Reporter: Max Gekk
Assignee: Max Gekk
h4. Syntax
expr1 + expr2
h4. Arguments
* expr1: A TIME, or INTERVAL expression.
* expr2: A TIME, or INTERVAL expression.
h4. Returns
When you add a day-time interval to a TIME, ensure that the resulting time is
well formed.
If the result overflows the result type, raise a DATETIME_OVERFLOW error.
h4. Examples
{code:sql}
> SELECT TIME'12:00:00' + INTERVAL '01:02:03' HOUR TO SECOND;
13:02:03
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]