-
Notifications
You must be signed in to change notification settings - Fork 29k
Revert "[SPARK-23264][SQL] Make INTERVAL keyword optional when ANSI enabled" #27080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
docs/sql-keywords.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to https://www.postgresql.org/docs/current/sql-keywords-appendix.html , unit-S is not keyword.
docs/sql-keywords.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to https://www.postgresql.org/docs/current/sql-keywords-appendix.html , they are not keyword.
docs/sql-keywords.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to https://www.postgresql.org/docs/current/sql-keywords-appendix.html , this is not keyword.
|
Test build #116048 has finished for PR 27080 at commit
|
|
Test build #116050 has finished for PR 27080 at commit
|
maropu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok to me if the tests passed.
| select (-30) day; | ||
| select (a + 1) day; | ||
| select 30 day day day; No newline at end of file | ||
| --IMPORT interval.sql No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need this test file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea, the overflow behavior is different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, we should have a comment to explain why we need this file.
HyukjinKwon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine if tests pass
|
LGTM |
|
Test build #116064 has finished for PR 27080 at commit
|
|
Test build #116077 has finished for PR 27080 at commit
|
|
retest this please |
|
Test build #116083 has finished for PR 27080 at commit
|
|
Test build #116095 has finished for PR 27080 at commit
|
|
Thanks! Merged to master. |
What changes were proposed in this pull request?
Revert #20433 .
Why are the changes needed?
According to the SQL standard, the INTERVAL prefix is required:
Does this PR introduce any user-facing change?
yes, but omitting the INTERVAL prefix is a new feature in 3.0
How was this patch tested?
existing tests