-
Notifications
You must be signed in to change notification settings - Fork 745
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
Regression of interval parsing #1503
Comments
what dialect is this an issue for? |
I see #1410 now. I'm using the postgres dialect, I was checking for changes when upgrading sqlglot and noticed this odd syntax. |
are you sure this is valid postgres? i can't get it to parse in postgres 13 |
I use a postgresql derivation, it doesn't really matter. select interval '1 hour' vs select interval '1 hours' The first is parsed correctly, the second gives: select interval '1' hours Which is not valid. Only: select interval '1' hour is valid postgresql syntax |
(The first means |
Thanks! |
thanks for the report and the quick response to my questions! |
is parsed into:
instead of the previous (correct):
Note the
days
The text was updated successfully, but these errors were encountered: