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

Conditional rewrites in JDBC complex expression pushdown #20318

Merged
merged 5 commits into from
Jan 11, 2024

Conversation

findepi
Copy link
Member

@findepi findepi commented Jan 10, 2024

Add support for conditional rewrites in JdbcConnectorExpressionRewriterBuilder.
This allows merging PostgreSqlClient's two different rewrite objects into one.

@cla-bot cla-bot bot added the cla-signed label Jan 10, 2024
@findepi findepi force-pushed the findepi/conditional-rewrite branch from 2408533 to d41f1ae Compare January 10, 2024 11:04
@findepi findepi requested review from wendigo and hashhar January 10, 2024 11:04
@findepi
Copy link
Member Author

findepi commented Jan 10, 2024

currently based on #19996

@findepi findepi marked this pull request as draft January 10, 2024 11:04
.map("$less_than_or_equal(left: collatable_type, right: collatable_type)").to("left <= right COLLATE \"C\"")
.map("$greater_than(left: collatable_type, right: collatable_type)").to("left > right COLLATE \"C\"")
.map("$greater_than_or_equal(left: collatable_type, right: collatable_type)").to("left >= right COLLATE \"C\"")
.when(pushdownWithCollateEnabled).map("$less_than(left: collatable_type, right: collatable_type)").to("left < right COLLATE \"C\"")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NICE

@findepi findepi marked this pull request as ready for review January 10, 2024 13:41
@findepi findepi force-pushed the findepi/conditional-rewrite branch from d41f1ae to 500d97f Compare January 10, 2024 13:41
@findepi
Copy link
Member Author

findepi commented Jan 10, 2024

rebased, ready to review. ptal

@findepi findepi requested a review from wendigo January 10, 2024 13:41
@findepi findepi added the no-release-notes This pull request does not require release notes entry label Jan 10, 2024
Add support for conditional rewrites in
`JdbcConnectorExpressionRewriterBuilder`.  This allows merging
`PostgreSqlClient`'s two different rewrite objects into one.
@findepi findepi force-pushed the findepi/conditional-rewrite branch from 500d97f to e533200 Compare January 10, 2024 16:10
@findepi findepi merged commit 2f3453b into trinodb:master Jan 11, 2024
91 checks passed
@findepi findepi deleted the findepi/conditional-rewrite branch January 11, 2024 08:54
@github-actions github-actions bot added this to the 436 milestone Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

3 participants