[
https://issues.apache.org/jira/browse/IGNITE-20968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maksim Zhuravkov updated IGNITE-20968:
--------------------------------------
Description:
SQL statement with minus operator for datetime types (date, time, timestamp)
fails with the following error:
{code:java}
Failed to validate query. From line 1, column 8 to line 1, column 44:
Cannot apply '-' to arguments of type '<DATE> - <DATE>'. Supported
form(s):
'<NUMERIC> - <NUMERIC>'
'<DATETIME_INTERVAL> - <DATETIME_INTERVAL>'
'<DATETIME> - <DATETIME_INTERVAL>'
{code}
was:
SQL statement with minus operator for Datetime types fails with the following
error:
{code:java}
Cannot apply '-' to arguments of type
{code}
> Sql. Operator Datetime - Datetime = Interval is not defined.
> ------------------------------------------------------------
>
> Key: IGNITE-20968
> URL: https://issues.apache.org/jira/browse/IGNITE-20968
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Reporter: Maksim Zhuravkov
> Priority: Minor
> Labels: ignite-3
> Fix For: 3.0.0-beta2
>
>
> SQL statement with minus operator for datetime types (date, time, timestamp)
> fails with the following error:
> {code:java}
> Failed to validate query. From line 1, column 8 to line 1, column 44:
> Cannot apply '-' to arguments of type '<DATE> - <DATE>'. Supported
> form(s):
> '<NUMERIC> - <NUMERIC>'
> '<DATETIME_INTERVAL> - <DATETIME_INTERVAL>'
> '<DATETIME> - <DATETIME_INTERVAL>'
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)