Skip to content

Comments

[SPARK-42608][SQL] Use full inner field names in resolution errors#40202

Closed
aokolnychyi wants to merge 1 commit intoapache:masterfrom
aokolnychyi:spark-42608
Closed

[SPARK-42608][SQL] Use full inner field names in resolution errors#40202
aokolnychyi wants to merge 1 commit intoapache:masterfrom
aokolnychyi:spark-42608

Conversation

@aokolnychyi
Copy link
Contributor

What changes were proposed in this pull request?

This PR makes TableOutputResolver use full names for inner fields in resolution errors.

Why are the changes needed?

These changes are needed to avoid confusion when there are multiple inner fields with the same name.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

This PR comes with tests.

@github-actions github-actions bot added the SQL label Feb 28, 2023
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.

cc @huaxingao , too

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 (Pending CIs)

cc @cloud-fan

@dongjoon-hyun
Copy link
Member

Could you check the failures or re-trigger the CI for this PR, @aokolnychyi ?

@aokolnychyi
Copy link
Contributor Author

Test failures don't seem to be related. I see similar failures on other PRs. I think the root cause has been recently reverted in master.

@dongjoon-hyun
Copy link
Member

You need to re-trigger CI, @aokolnychyi , because we cannot re-trigger for you.

dongjoon-hyun pushed a commit that referenced this pull request Feb 28, 2023
### What changes were proposed in this pull request?

This PR makes `TableOutputResolver` use full names for inner fields in resolution errors.

### Why are the changes needed?

These changes are needed to avoid confusion when there are multiple inner fields with the same name.

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

No.

### How was this patch tested?

This PR comes with tests.

Closes #40202 from aokolnychyi/spark-42608.

Authored-by: aokolnychyi <aokolnychyi@apple.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 74410ca)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun
Copy link
Member

Merged to master/3.4 for Apache Spark 3.4.0.
Thank you, @aokolnychyi and all!

@aokolnychyi
Copy link
Contributor Author

Thank you, @dongjoon-hyun @huaxingao @cloud-fan!

snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Jun 20, 2023
### What changes were proposed in this pull request?

This PR makes `TableOutputResolver` use full names for inner fields in resolution errors.

### Why are the changes needed?

These changes are needed to avoid confusion when there are multiple inner fields with the same name.

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

No.

### How was this patch tested?

This PR comes with tests.

Closes apache#40202 from aokolnychyi/spark-42608.

Authored-by: aokolnychyi <aokolnychyi@apple.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 74410ca)
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

Development

Successfully merging this pull request may close these issues.

4 participants