Skip to content

[SPARK-39887][SQL][FOLLOW-UP] Do not exclude Union's first child attributes when traversing other children in RemoveRedundantAliases#37534

Closed
peter-toth wants to merge 1 commit intoapache:masterfrom
peter-toth:SPARK-39887-keep-attributes-of-unions-first-child-follow-up
Closed

[SPARK-39887][SQL][FOLLOW-UP] Do not exclude Union's first child attributes when traversing other children in RemoveRedundantAliases#37534
peter-toth wants to merge 1 commit intoapache:masterfrom
peter-toth:SPARK-39887-keep-attributes-of-unions-first-child-follow-up

Conversation

@peter-toth
Copy link
Contributor

What changes were proposed in this pull request?

Do not exclude Union's first child attributes when traversing other children in RemoveRedundantAliases.

Why are the changes needed?

We don't need to exclude those attributes that Union inherits from its first child. See discussion here: #37496 (comment)

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing UTs.

…rom excluded set when traversing other children in RemoveRedundantAliases
@peter-toth
Copy link
Contributor Author

@cloud-fan, as we discussed here #37496 (comment), this follow-up needs t land in 3.4, 3.3, 3.2.

@github-actions github-actions bot added the SQL label Aug 16, 2022
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

@cloud-fan
Copy link
Contributor

thanks, merging to master/3.3/3.2!

@cloud-fan cloud-fan closed this in e732232 Aug 17, 2022
cloud-fan pushed a commit that referenced this pull request Aug 17, 2022
…ibutes when traversing other children in RemoveRedundantAliases

### What changes were proposed in this pull request?
Do not exclude `Union`'s first child attributes when traversing other children in `RemoveRedundantAliases`.

### Why are the changes needed?
We don't need to exclude those attributes that `Union` inherits from its first child. See discussion here: #37496 (comment)

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Existing UTs.

Closes #37534 from peter-toth/SPARK-39887-keep-attributes-of-unions-first-child-follow-up.

Authored-by: Peter Toth <ptoth@cloudera.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit e732232)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
cloud-fan pushed a commit that referenced this pull request Aug 17, 2022
…ibutes when traversing other children in RemoveRedundantAliases

### What changes were proposed in this pull request?
Do not exclude `Union`'s first child attributes when traversing other children in `RemoveRedundantAliases`.

### Why are the changes needed?
We don't need to exclude those attributes that `Union` inherits from its first child. See discussion here: #37496 (comment)

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Existing UTs.

Closes #37534 from peter-toth/SPARK-39887-keep-attributes-of-unions-first-child-follow-up.

Authored-by: Peter Toth <ptoth@cloudera.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit e732232)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
@peter-toth
Copy link
Contributor Author

Thanks for the review @cloud-fan, @dongjoon-hyun!

sunchao pushed a commit to sunchao/spark that referenced this pull request Jun 2, 2023
…ibutes when traversing other children in RemoveRedundantAliases

### What changes were proposed in this pull request?
Do not exclude `Union`'s first child attributes when traversing other children in `RemoveRedundantAliases`.

### Why are the changes needed?
We don't need to exclude those attributes that `Union` inherits from its first child. See discussion here: apache#37496 (comment)

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Existing UTs.

Closes apache#37534 from peter-toth/SPARK-39887-keep-attributes-of-unions-first-child-follow-up.

Authored-by: Peter Toth <ptoth@cloudera.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit e732232)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants