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-13759][SQL] Add IsNotNull constraints for expressions with an inequality #11594

Closed

Conversation

sameeragarwal
Copy link
Member

What changes were proposed in this pull request?

This PR adds support for inferring IsNotNull constraints from expressions with an !==. More specifically, if an operator has a condition on a !== b, we know that both a and b in the operator output can no longer be null.

How was this patch tested?

  1. Modified a test in ConstraintPropagationSuite to test for expressions with an inequality.
  2. Added a test in NullFilteringSuite for making sure an Inner join with a "non-equal" condition appropriately filters out null from their input.

cc @nongli

@SparkQA
Copy link

SparkQA commented Mar 9, 2016

Test build #52714 has finished for PR 11594 at commit 21a9250.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@nongli
Copy link
Contributor

nongli commented Mar 9, 2016

lgtm

@sameeragarwal sameeragarwal force-pushed the isnotequal-constraints branch 2 times, most recently from 54c3f49 to 84bac4d Compare March 9, 2016 06:47
@SparkQA
Copy link

SparkQA commented Mar 9, 2016

Test build #52730 has finished for PR 11594 at commit 54c3f49.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 9, 2016

Test build #52729 has finished for PR 11594 at commit 635eae2.

  • This patch passes all tests.
  • This patch does not merge cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 9, 2016

Test build #52731 has finished for PR 11594 at commit 84bac4d.

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

@SparkQA
Copy link

SparkQA commented Mar 10, 2016

Test build #52785 has finished for PR 11594 at commit d316a07.

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

@asfgit asfgit closed this in 19f4ac6 Mar 10, 2016
roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
…inequality

## What changes were proposed in this pull request?

This PR adds support for inferring `IsNotNull` constraints from expressions with an `!==`. More specifically, if an operator has a condition on `a !== b`, we know that both `a` and `b` in the operator output can no longer be null.

## How was this patch tested?

1. Modified a test in `ConstraintPropagationSuite` to test for expressions with an inequality.
2. Added a test in `NullFilteringSuite` for making sure an Inner join with a "non-equal" condition appropriately filters out null from their input.

cc nongli

Author: Sameer Agarwal <sameer@databricks.com>

Closes apache#11594 from sameeragarwal/isnotequal-constraints.
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