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-48683][SQL] Fix schema evolution with df.mergeInto losing when clauses #47055

Closed
wants to merge 2 commits into from

Conversation

xupefei
Copy link
Contributor

@xupefei xupefei commented Jun 21, 2024

What changes were proposed in this pull request?

This PR fixes an issue in the DataFrame.mergeInto API where defined when clauses are lost after calling the withSchemaEvoltuion() method.
The issue is caused by not copying over existing clauses to the new writer.

Why are the changes needed?

It fixes a bug.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

New test.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Jun 21, 2024
@xupefei xupefei changed the title [SPARK-48683] Fix schema evolution with df.mergeInto losing when clauses [SPARK-48683][SQL] Fix schema evolution with df.mergeInto losing when clauses Jun 21, 2024
@HyukjinKwon
Copy link
Member

Merged to master.

@xupefei xupefei deleted the mergeinto-bugfix branch June 24, 2024 08:30
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
…hen` clauses

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

This PR fixes an issue in the `DataFrame.mergeInto` API where defined `when` clauses are lost after calling the `withSchemaEvoltuion()` method.
The issue is caused by not copying over existing clauses to the new writer.

### Why are the changes needed?

It fixes a bug.

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

No.

### How was this patch tested?

New test.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#47055 from xupefei/mergeinto-bugfix.

Authored-by: Paddy Xu <xupaddy@gmail.com>
Signed-off-by: Hyukjin Kwon <gurwls223@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.

2 participants