You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Guillaume Massé (Jira)" <ji...@apache.org> on 2023/06/13 21:42:00 UTC
[jira] [Created] (CALCITE-5776) Support for alternative Interval syntax
Guillaume Massé created CALCITE-5776:
----------------------------------------
Summary: Support for alternative Interval syntax
Key: CALCITE-5776
URL: https://issues.apache.org/jira/browse/CALCITE-5776
Project: Calcite
Issue Type: Improvement
Components: core
Reporter: Guillaume Massé
{code:java}
spark.sql("select (CURRENT_DATE - INTERVAL '7 DAYS') ").show
+-----------------------------------------------------------------------+
|date_add(current_date(), (- extractansiintervaldays(INTERVAL '7' DAY)))|
+-----------------------------------------------------------------------+
| 2023-06-06|
+-----------------------------------------------------------------------+ {code}
currently the parser does not allows:
`- INTERVAL '7 DAYS'`
--
This message was sent by Atlassian Jira
(v8.20.10#820010)