Skip to content
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

Merged
merged 21 commits into from
Jan 4, 2024

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Jan 4, 2024

This PR pulls out some changes from #7871, including some removal of redundant translation rules and fixing some xpassing tests

@cpcloud cpcloud requested a review from kszucs January 4, 2024 13:44
return func(*args, dialect=self.dialect)

@staticmethod
def _minimize_spec(start, end, spec):
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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?

@cpcloud cpcloud force-pushed the consolidate-sqlglot branch from d614257 to 9eafdcd Compare January 4, 2024 14:15
@cpcloud cpcloud force-pushed the consolidate-sqlglot branch from 487e1d8 to 6e9e9bc Compare January 4, 2024 14:23
@cpcloud cpcloud requested a review from kszucs January 4, 2024 14:51
@cpcloud cpcloud added the refactor Issues or PRs related to refactoring the codebase label Jan 4, 2024
@kszucs kszucs merged commit bbc0268 into ibis-project:the-epic-split Jan 4, 2024
26 checks passed
@cpcloud cpcloud deleted the consolidate-sqlglot branch January 4, 2024 15:27
cpcloud added a commit that referenced this pull request Jan 5, 2024
)

This PR pulls out some changes from #7871, including some removal of
redundant translation rules and fixing some xpassing tests
cpcloud added a commit that referenced this pull request Jan 12, 2024
)

This PR pulls out some changes from #7871, including some removal of
redundant translation rules and fixing some xpassing tests
cpcloud added a commit that referenced this pull request Jan 13, 2024
)

This PR pulls out some changes from #7871, including some removal of
redundant translation rules and fixing some xpassing tests
cpcloud added a commit that referenced this pull request Jan 17, 2024
)

This PR pulls out some changes from #7871, including some removal of
redundant translation rules and fixing some xpassing tests
kszucs pushed a commit to kszucs/ibis that referenced this pull request Feb 1, 2024
…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
kszucs pushed a commit to kszucs/ibis that referenced this pull request Feb 1, 2024
…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
kszucs pushed a commit to kszucs/ibis that referenced this pull request Feb 1, 2024
…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
kszucs pushed a commit to kszucs/ibis that referenced this pull request Feb 2, 2024
…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
kszucs pushed a commit to kszucs/ibis that referenced this pull request Feb 2, 2024
…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
kszucs pushed a commit to kszucs/ibis that referenced this pull request Feb 2, 2024
…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
cpcloud added a commit to cpcloud/ibis that referenced this pull request Feb 4, 2024
…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
cpcloud added a commit to cpcloud/ibis that referenced this pull request Feb 5, 2024
…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
kszucs pushed a commit that referenced this pull request Feb 5, 2024
)

This PR pulls out some changes from #7871, including some removal of
redundant translation rules and fixing some xpassing tests
kszucs pushed a commit that referenced this pull request Feb 6, 2024
)

This PR pulls out some changes from #7871, including some removal of
redundant translation rules and fixing some xpassing tests
kszucs pushed a commit that referenced this pull request Feb 6, 2024
)

This PR pulls out some changes from #7871, including some removal of
redundant translation rules and fixing some xpassing tests
cpcloud added a commit to cpcloud/ibis that referenced this pull request Feb 12, 2024
…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
cpcloud added a commit that referenced this pull request Feb 12, 2024
)

This PR pulls out some changes from #7871, including some removal of
redundant translation rules and fixing some xpassing tests
cpcloud added a commit to cpcloud/ibis that referenced this pull request Feb 12, 2024
…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
cpcloud added a commit that referenced this pull request Feb 12, 2024
)

This PR pulls out some changes from #7871, including some removal of
redundant translation rules and fixing some xpassing tests
kszucs pushed a commit that referenced this pull request Feb 12, 2024
)

This PR pulls out some changes from #7871, including some removal of
redundant translation rules and fixing some xpassing tests
ncclementi pushed a commit to ncclementi/ibis that referenced this pull request Feb 21, 2024
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Issues or PRs related to refactoring the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants