-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-4468][SQL] Fixes Parquet filter creation for inequality predicates with literals on the left hand side #3334
Conversation
Test build #23532 has started for PR 3334 at commit
|
Marked this PR as WIP as there might be another NPE issue inherited from the original code. |
OK, removed the WIP tag, since it may take some time to look into the other issue while this bug is somewhat critical as it affects query result correctness. @marmbrus This should be ready to go once Jenkins says yes. Will open another PR to tackle the possible NPE issue. |
Test build #23532 has finished for PR 3334 at commit
|
Test PASSed. |
…ates with literals on the left hand side For expressions like `10 < someVar`, we should create an `Operators.Gt` filter, but right now an `Operators.Lt` is created. This issue affects all inequality predicates with literals on the left hand side. (This bug existed before apache#3317 and affects branch-1.1. apache#3338 was opened to backport this to branch-1.1.) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/apache/spark/3334) <!-- Reviewable:end --> Author: Cheng Lian <lian@databricks.com> Closes apache#3334 from liancheng/fix-parquet-comp-filter and squashes the following commits: 0130897 [Cheng Lian] Fixes Parquet comparison filter generation
…ates with literals on the left hand side For expressions like `10 < someVar`, we should create an `Operators.Gt` filter, but right now an `Operators.Lt` is created. This issue affects all inequality predicates with literals on the left hand side. (This bug existed before #3317 and affects branch-1.1. #3338 was opened to backport this to branch-1.1.) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/apache/spark/3334) <!-- Reviewable:end --> Author: Cheng Lian <lian@databricks.com> Closes #3334 from liancheng/fix-parquet-comp-filter and squashes the following commits: 0130897 [Cheng Lian] Fixes Parquet comparison filter generation (cherry picked from commit 423baea) Signed-off-by: Michael Armbrust <michael@databricks.com>
This PR has already been merged, status not updated 'cause the out-of-sync issue between GitHub and ASF repo. Closing. |
For expressions like
10 < someVar
, we should create anOperators.Gt
filter, but right now anOperators.Lt
is created. This issue affects all inequality predicates with literals on the left hand side.(This bug existed before #3317 and affects branch-1.1. #3338 was opened to backport this to branch-1.1.)