Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

Binary operator requires its inputs to be of same type, but it should not consider nullability, e.g. EqualTo should be able to compare an element-nullable array and an element-non-nullable array.

How was this patch tested?

a regression test in DataFrameSuite

@cloud-fan
Copy link
Contributor Author

cc @gatorsmile @yhuai

@gatorsmile
Copy link
Member

This bug only affects the complex type, (ArrayType, StructType, and MapType)?

@SparkQA
Copy link

SparkQA commented Oct 24, 2016

Test build #67437 has finished for PR 15606 at commit ba880d8.

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

@cloud-fan
Copy link
Contributor Author

@gatorsmile yup, the DataType.sameType has no override

@gatorsmile
Copy link
Member

LGTM

@gatorsmile
Copy link
Member

retest this please

@SparkQA
Copy link

SparkQA commented Oct 25, 2016

Test build #67519 has finished for PR 15606 at commit ba880d8.

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

@yhuai
Copy link
Contributor

yhuai commented Oct 25, 2016

LGTM. Merging to master and branch 2.0.

asfgit pushed a commit that referenced this pull request Oct 25, 2016
…en comparing input types

## What changes were proposed in this pull request?

Binary operator requires its inputs to be of same type, but it should not consider nullability, e.g. `EqualTo` should be able to compare an element-nullable array and an element-non-nullable array.

## How was this patch tested?

a regression test in `DataFrameSuite`

Author: Wenchen Fan <[email protected]>

Closes #15606 from cloud-fan/type-bug.

(cherry picked from commit a21791e)
Signed-off-by: Yin Huai <[email protected]>
@asfgit asfgit closed this in a21791e Oct 25, 2016
robert3005 pushed a commit to palantir/spark that referenced this pull request Nov 1, 2016
…en comparing input types

## What changes were proposed in this pull request?

Binary operator requires its inputs to be of same type, but it should not consider nullability, e.g. `EqualTo` should be able to compare an element-nullable array and an element-non-nullable array.

## How was this patch tested?

a regression test in `DataFrameSuite`

Author: Wenchen Fan <[email protected]>

Closes apache#15606 from cloud-fan/type-bug.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…en comparing input types

## What changes were proposed in this pull request?

Binary operator requires its inputs to be of same type, but it should not consider nullability, e.g. `EqualTo` should be able to compare an element-nullable array and an element-non-nullable array.

## How was this patch tested?

a regression test in `DataFrameSuite`

Author: Wenchen Fan <[email protected]>

Closes apache#15606 from cloud-fan/type-bug.
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