-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update Sqlglot and fix regression #26
Conversation
add additional test using column names with spaces
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.
Thank you!
Hmm I'm not quite sure why that test is failing though 🤷🏽♂️ |
Turns out that after bumping sqlglot to the latest version 25.8.1, p.s. sqlglot parsing for TO_DATE in postgres was updated in the original repo here ~ 2 weeks ago |
@@ -429,6 +429,8 @@ def get_sql_features( | |||
features.date_sub = True | |||
elif isinstance(node, exp.DateTrunc) or isinstance(node, exp.TimestampTrunc): | |||
features.date_trunc = True | |||
elif isinstance(node, exp.StrToDate): |
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.
this is the key regression fix after updating sqlglot
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.
Thank you for documenting and for the fix!
pinned sqlglot version in requirements.txt
fixed featurization of
TO_DATE
whendialect="postgres"
linted repo
add additional test using column names with spaces
add vscode settings to facilitate easier testing