Skip to content

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
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