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-22464] [SQL] No pushdown for Hive metastore partition predicates containing null-safe equality #19682

Closed
wants to merge 3 commits into from

Conversation

gatorsmile
Copy link
Member

What changes were proposed in this pull request?

<=> is not supported by Hive metastore partition predicate pushdown. We should not push down it to Hive metastore when they are be using in partition predicates.

How was this patch tested?

Added a test case

@gatorsmile
Copy link
Member Author

cc @cloud-fan @mallman

@SparkQA
Copy link

SparkQA commented Nov 7, 2017

Test build #83531 has finished for PR 19682 at commit be0e276.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

*
* null-safe equality is not supported by Hive metastore partition predicate pushdown
*/
object OperatorsInMetastorePartitionFPD {
Copy link
Contributor

Choose a reason for hiding this comment

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

This name looks weird... maybe just SpecialBinaryComparison and explain the detail in the document.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@SparkQA
Copy link

SparkQA commented Nov 7, 2017

Test build #83535 has finished for PR 19682 at commit be0e276.

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

@SparkQA
Copy link

SparkQA commented Nov 7, 2017

Test build #83552 has finished for PR 19682 at commit bae7494.

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

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan
Copy link
Contributor

can you send a new PR for 2.2? thanks!

@asfgit asfgit closed this in 0846a44 Nov 7, 2017
@mallman
Copy link
Contributor

mallman commented Nov 8, 2017

Thanks for the fix!

gatorsmile added a commit to gatorsmile/spark that referenced this pull request Nov 11, 2017
…s containing null-safe equality

## What changes were proposed in this pull request?
`<=>` is not supported by Hive metastore partition predicate pushdown. We should not push down it to Hive metastore when they are be using in partition predicates.

## How was this patch tested?
Added a test case

Author: gatorsmile <gatorsmile@gmail.com>

Closes apache#19682 from gatorsmile/fixLimitPushDown.

# Conflicts:
#	sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala
#	sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientSuite.scala
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.

4 participants