Github user dongjoon-hyun commented on the issue:
https://github.com/apache/spark/pull/15318
I see.
> Please try all the variants
Our Apache Spark supports all the following 4 cases.
- interval 1 day
- interval 1 days
- interval '1' day
- interval '1' days
```scala
scala> sql("select current_timestamp + INTERVAL 1 DAY, current_timestamp +
INTERVAL 1 DAYS, current_timestamp + INTERVAL '1' DAY, current_timestamp +
INTERVAL '1' DAYS").show
+--------------------------------------------------------+--------------------------------------------------------+--------------------------------------------------------+--------------------------------------------------------+
|CAST(current_timestamp() + interval 1 days AS
TIMESTAMP)|CAST(current_timestamp() + interval 1 days AS
TIMESTAMP)|CAST(current_timestamp() + interval 1 days AS
TIMESTAMP)|CAST(current_timestamp() + interval 1 days AS TIMESTAMP)|
+--------------------------------------------------------+--------------------------------------------------------+--------------------------------------------------------+--------------------------------------------------------+
| 2016-10-02 14:49:...|
2016-10-02 14:49:...|
2016-10-02 14:49:...| 2016-10-02 14:49:...|
+--------------------------------------------------------+--------------------------------------------------------+--------------------------------------------------------+--------------------------------------------------------+
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]