You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-53629][SQL] Implement type widening for MERGE INTO WITH SCHEMA EVOLUTION
### What changes were proposed in this pull request?
MERGE INTO WITH SCHEMA EVOLUTION already support adding new column, and also some type widening (if structs are missing some fields)
It should support type widening for primitive data types. Spark will call the V2DataSource TableCatalog to alter the schema, so the V2DataSource can decide whether it is acceptable or not.
This change also fixes InMemoryDataSource to support this case
### Why are the changes needed?
Support more use case for MERGE INTO WITH SCHEMA EVOLUTION.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Add unit test.
### Was this patch authored or co-authored using generative AI tooling?
No
Closes#52377 from szehon-ho/merge_type_evolution.
Authored-by: Szehon Ho <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
0 commit comments