-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Pushdown CAST in JOIN criteria for PostgreSql #21939
Conversation
@@ -1013,6 +1012,66 @@ public void testInPredicatePushdown() | |||
} | |||
} | |||
|
|||
@Test |
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.
Add case sensitive tests
2b19480
to
07e7da2
Compare
assertThatThrownBy(() -> getQueryRunner().execute(session, "SELECT a.a2, b.b2 FROM %s a JOIN %s b ON CAST(a.a1 AS %s) = b.b1".formatted(tableA.getName(), tableB.getName(), testCaseMoney.castType()))); | ||
// the best we can do - cast right side to a trino type, to which is resolved left side. After pushdown, trino type is mapped to native type | ||
assertThat(query(session, "SELECT a.a2, b.b2 FROM %s a JOIN %s b ON CAST(a.a1 AS %s) = CAST(b.b1 AS %s)".formatted(tableA.getName(), tableB.getName(), testCaseMoney.castType(), testCaseMoney.castType()))) |
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.
This is a breaking change, so has to be covered by config/session property toggle.
@Praveen2112
07e7da2
to
d4f22da
Compare
Extend rule to support join pushdown in cases where join conditions contain Calls causing Project nodes to appear over scans. Fix failing tests
Co-authored-by: Semion Paramonow <[email protected]>
d4f22da
to
edc25bf
Compare
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
I am adding the stale-ignore label under the assumption that @ssheikin and others are still collaborating on this and will bring it to completion. |
To revisit after #21607 is merged |
To be revisited after #22728 is merged
Description
Based and requires #21607
Similar to #22728
Additional context and related issues
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: