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

Fix predicate pushdown for identity projections #1515

Merged
merged 1 commit into from
Sep 25, 2019

Conversation

sopel39
Copy link
Member

@sopel39 sopel39 commented Sep 13, 2019

No description provided.

@sopel39 sopel39 requested a review from martint September 13, 2019 11:54
@cla-bot cla-bot bot added the cla-signed label Sep 13, 2019
@sopel39
Copy link
Member Author

sopel39 commented Sep 13, 2019

I think this fixes #1114

Copy link
Member

@martint martint left a comment

Choose a reason for hiding this comment

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

Minor comment, but otherwise looks good.

@@ -366,10 +366,10 @@ public void testPredicatePushDownOverProjection()

// Identities should be pushed down
assertPlan(
"WITH t AS (SELECT orderkey x FROM orders) " +
"SELECT * FROM t WHERE x >1",
"WITH t AS (SELECT orderkey x, (orderkey + 1) x2 FROM orders) " +
Copy link
Member

Choose a reason for hiding this comment

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

Add a separate test case instead of overloading this one with an extra column.

@sopel39 sopel39 force-pushed the ks/fix_pushdown_identities branch from cb3dfa8 to d482666 Compare September 25, 2019 11:29
@sopel39 sopel39 merged commit 7195e05 into trinodb:master Sep 25, 2019
@sopel39 sopel39 deleted the ks/fix_pushdown_identities branch September 25, 2019 11:30
@martint martint added this to the 320 milestone Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants