-
Notifications
You must be signed in to change notification settings - Fork 1k
fix(postgres)!: move postgres range parsers to global level #6591
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
fix(postgres)!: move postgres range parsers to global level #6591
Conversation
|
Why are we moving these parsers to base? I think Toby's comment was about ensuring the generators for these expressions live in the base class instead of postgres to avoid failing @ gen time when the dialect is not postgres. |
got your point! will update soon. |
|
We discussed offline that this PR is fine, SQLGlot's base dialect should always be able to parse an AST. |
I need to round trip the @ only now, right? |
Addressing the feedback from @tobymao in PR #6545 regarding the global scope of postgres range parsers.