Skip to content

[SPARK-14990][SQL] Fix checkForSameTypeInputExpr (ignore nullability) - #13208

Closed
rxin wants to merge 3 commits into
apache:masterfrom
rxin:SPARK-14990
Closed

[SPARK-14990][SQL] Fix checkForSameTypeInputExpr (ignore nullability)#13208
rxin wants to merge 3 commits into
apache:masterfrom
rxin:SPARK-14990

Conversation

@rxin

@rxinrxin commented May 20, 2016

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This patch fixes a bug in TypeUtils.checkForSameTypeInputExpr. Previously the code was testing on strict equality, which does not taking nullability into account.

This is based on #12768. This patch fixed a bug there (with empty expression) and added a test case.

How was this patch tested?

Added a new test suite and test case.

Closes#12768.

@rxin

rxin commented May 20, 2016

Copy link
Copy Markdown
ContributorAuthor

cc @dosoft

@rxin

rxin commented May 20, 2016

Copy link
Copy Markdown
ContributorAuthor

cc @yhuai for review

@SparkQA

Copy link
Copy Markdown

Test build #58927 has finished for PR 13208 at commit 2ad10ee.

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

@cloud-fan

Copy link
Copy Markdown
Contributor

LGTM

@rxin

rxin commented May 20, 2016

Copy link
Copy Markdown
ContributorAuthor

Merging in master/2.0.

asfgit pushed a commit that referenced this pull request May 20, 2016
## What changes were proposed in this pull request?
This patch fixes a bug in TypeUtils.checkForSameTypeInputExpr. Previously the code was testing on strict equality, which does not taking nullability into account.
This is based on #12768. This patch fixed a bug there (with empty expression) and added a test case.
## How was this patch tested?
Added a new test suite and test case.
Closes#12768.
Author: Reynold Xin <rxin@databricks.com>
Author: Oleg Danilov <oleg.danilov@wandisco.com>
Closes#13208 from rxin/SPARK-14990.
(cherry picked from commit 3ba34d4)
Signed-off-by: Reynold Xin <rxin@databricks.com>
Sign up for freeto 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

@rxin@SparkQA@cloud-fan@dosoft