-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-16994][SQL] PushDownPredicate should not ignore limits. #14583
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
Conversation
@@ -1988,6 +1988,11 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext { | |||
} | |||
} | |||
|
|||
test("SPARK-16994: filter should not be pushed down into local limit") { |
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.
Writing an end-to-end test case is not very helpful here.
You can write a new test case in the related optimizer rule.
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.
Thank you, @gatorsmile .
Test build #63548 has finished for PR 14583 at commit
|
Test build #63581 has finished for PR 14583 at commit
|
Retest this please |
Test build #63589 has finished for PR 14583 at commit
|
Test build #63732 has finished for PR 14583 at commit
|
Hi, @rxin . |
Test build #63854 has finished for PR 14583 at commit
|
Test build #63986 has finished for PR 14583 at commit
|
I'm fixing this differently here: #14713 |
Okay. Thanks, @rxin. |
What changes were proposed in this pull request?
Currently,
filter
andlimit
are illegally permuted becausePushDownPredicate
optimizer pushesfilters
throughlimit
. This PR fixes that.Reported Error Scenario
After
How was this patch tested?
Pass the Jenkins with a new test case.