Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49687][SQL] Delay sorting in
validateAndMaybeEvolveStateSchema
### What changes were proposed in this pull request? In `validateAndMaybeEvolveStateSchema`, existing schema and new schema are sorted by column family name. The sorting can be delayed until `createSchemaFile` is called. When computing `colFamiliesAddedOrRemoved`, we can use `toSet` to compare column families. ### Why are the changes needed? This would make `validateAndMaybeEvolveStateSchema` faster. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#48116 from tedyu/ty-comp-chk. Authored-by: Zhihong Yu <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
- Loading branch information