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

[SPARK-4468][SQL] Fixes Parquet filter creation for inequality predicates with literals on the left hand side #3334

Closed
wants to merge 1 commit into from

Conversation

liancheng
Copy link
Contributor

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.)

Review on Reviewable

@SparkQA
Copy link

SparkQA commented Nov 18, 2014

Test build #23532 has started for PR 3334 at commit 0130897.

  • This patch merges cleanly.

@liancheng liancheng changed the title [SPARK-4468][SQL] Fixes Parquet filter creation for inequality predicates with literals on the left hand side [SPARK-4468][SQL][WIP] Fixes Parquet filter creation for inequality predicates with literals on the left hand side Nov 18, 2014
@liancheng
Copy link
Contributor Author

Marked this PR as WIP as there might be another NPE issue inherited from the original code.

@liancheng liancheng changed the title [SPARK-4468][SQL][WIP] Fixes Parquet filter creation for inequality predicates with literals on the left hand side [SPARK-4468][SQL] Fixes Parquet filter creation for inequality predicates with literals on the left hand side Nov 18, 2014
@liancheng
Copy link
Contributor Author

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.

@SparkQA
Copy link

SparkQA commented Nov 18, 2014

Test build #23532 has finished for PR 3334 at commit 0130897.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23532/
Test PASSed.

liancheng added a commit to liancheng/spark that referenced this pull request Nov 18, 2014
marmbrus pushed a commit to marmbrus/spark that referenced this pull request Nov 19, 2014
…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
liancheng added a commit that referenced this pull request Nov 19, 2014
…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>
@liancheng
Copy link
Contributor Author

This PR has already been merged, status not updated 'cause the out-of-sync issue between GitHub and ASF repo. Closing.

@liancheng liancheng closed this Nov 20, 2014
@liancheng liancheng deleted the fix-parquet-comp-filter branch November 20, 2014 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants