Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/20433#discussion_r175525822
--- Diff:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4 ---
@@ -616,18 +616,22 @@ booleanValue
;
interval
- : INTERVAL intervalField*
+ : INTERVAL? intervalField+
;
intervalField
- : value=intervalValue unit=identifier (TO to=identifier)?
+ : value=intervalValue unit=intervalUnit (TO to=identifier)?
--- End diff --
shouldn't the `to` also a intervalUnit?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]