-
Notifications
You must be signed in to change notification settings - Fork 608
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(trino): port to sqlglot #7871
Conversation
ACTION NEEDED Ibis follows the Conventional Commits specification for release automation. The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. |
595ad37
to
c625487
Compare
a90625f
to
2636060
Compare
Snowflake tests are passing:
|
0f76d65
to
04eaf7f
Compare
ibis/expr/rewrites.py
Outdated
@@ -91,6 +92,48 @@ def rewrite_dropna(_): | |||
return ops.Filter(_.parent, tuple(preds)) | |||
|
|||
|
|||
@replace(p.WindowFunction(p.First(x, y))) |
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.
Are these specific to trino?
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.
No, other backends that lack a proper First
/Last
aggregate (but implement it for scalar aggs in Ibis) can reuse this.
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 please move these rules to sqlglot/rewrites.py?
Later we can do a consolidation pass over all the different rewrites.py
eb31002
to
61e34b9
Compare
d22fb51
to
d2a7e5a
Compare
Snowflake tests look good:
|
) 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
Port the trino backend to sqlglot. I need to create some follow-up issues.