-
Notifications
You must be signed in to change notification settings - Fork 609
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
refactor(sqlglot): various sqlglot compiler and backend clean ups #7904
refactor(sqlglot): various sqlglot compiler and backend clean ups #7904
Conversation
…ions for greater backend compatibility
…l compilation in base sqlglot compiler class
… to allow redundant compiler rule cleanup
… to the class directly
…iled with dangling spans
…to not render to allow backends that hard-restrict such bounds to execute
return func(*args, dialect=self.dialect) | ||
|
||
@staticmethod | ||
def _minimize_spec(start, end, spec): |
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.
Shouldn't this be a rewrite instead?
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.
Can you propose a rewrite rule? I'm not sure this can be done as a rewrite: it's altering the way specific ibis values are interpreted in 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.
Ahh, this changes the sqlglot expression. Then can you rename the method to _minimize_window_spec
and add a short comment about what it does?
d614257
to
9eafdcd
Compare
487e1d8
to
6e9e9bc
Compare
) This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests
) This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests
) This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests
) This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests
…is-project#7904) This PR pulls out some changes from ibis-project#7871, including some removal of redundant translation rules and fixing some xpassing tests
…is-project#7904) This PR pulls out some changes from ibis-project#7871, including some removal of redundant translation rules and fixing some xpassing tests
…is-project#7904) This PR pulls out some changes from ibis-project#7871, including some removal of redundant translation rules and fixing some xpassing tests
…is-project#7904) This PR pulls out some changes from ibis-project#7871, including some removal of redundant translation rules and fixing some xpassing tests
…is-project#7904) This PR pulls out some changes from ibis-project#7871, including some removal of redundant translation rules and fixing some xpassing tests
…is-project#7904) This PR pulls out some changes from ibis-project#7871, including some removal of redundant translation rules and fixing some xpassing tests
…is-project#7904) This PR pulls out some changes from ibis-project#7871, including some removal of redundant translation rules and fixing some xpassing tests
…is-project#7904) This PR pulls out some changes from ibis-project#7871, including some removal of redundant translation rules and fixing some xpassing tests
) This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests
) This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests
) This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests
…is-project#7904) This PR pulls out some changes from ibis-project#7871, including some removal of redundant translation rules and fixing some xpassing tests
) This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests
…is-project#7904) This PR pulls out some changes from ibis-project#7871, including some removal of redundant translation rules and fixing some xpassing tests
) This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests
) This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests
…is-project#7904) This PR pulls out some changes from ibis-project#7871, including some removal of redundant translation rules and fixing some xpassing tests
This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests