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-38347][SQL] Fix nullability propagation in transformUpWithNewOutput #35685

Closed
wants to merge 1 commit into from

Conversation

sigmod
Copy link
Contributor

@sigmod sigmod commented Feb 28, 2022

What changes were proposed in this pull request?

In updateAttr, let the new Attribute have the same nullability as the Attribute to be replaced.

Why are the changes needed?

attrMap can possibly be populated below an outer join and the outer join changes nullability.

How was this patch tested?

New unit test - verified that it fails without the fix.

@github-actions github-actions bot added the SQL label Feb 28, 2022
@sigmod
Copy link
Contributor Author

sigmod commented Feb 28, 2022

cc @gengliangwang

@gengliangwang
Copy link
Member

Thanks, merging to branch-3.2

gengliangwang pushed a commit that referenced this pull request Mar 1, 2022
…utput

### What changes were proposed in this pull request?

In `updateAttr`, let the new Attribute have the same nullability as the Attribute to be replaced.

### Why are the changes needed?

`attrMap` can possibly be populated below an outer join and the outer join changes nullability.

### How was this patch tested?

New unit test - verified that it fails without the fix.

Closes #35685 from sigmod/nullability2.

Authored-by: Yingyi Bu <yingyi.bu@databricks.com>
Signed-off-by: Gengliang Wang <gengliang@apache.org>
kazuyukitanimura pushed a commit to kazuyukitanimura/spark that referenced this pull request Aug 10, 2022
…utput

### What changes were proposed in this pull request?

In `updateAttr`, let the new Attribute have the same nullability as the Attribute to be replaced.

### Why are the changes needed?

`attrMap` can possibly be populated below an outer join and the outer join changes nullability.

### How was this patch tested?

New unit test - verified that it fails without the fix.

Closes apache#35685 from sigmod/nullability2.

Authored-by: Yingyi Bu <yingyi.bu@databricks.com>
Signed-off-by: Gengliang Wang <gengliang@apache.org>
(cherry picked from commit dba6edb)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants