Skip to content

[core] Diff nested schema changes inside ARRAY and MAP value types#7843

Merged
JingsongLi merged 1 commit into
apache:masterfrom
Zouxxyy:dev/test-merge11
May 13, 2026
Merged

[core] Diff nested schema changes inside ARRAY and MAP value types#7843
JingsongLi merged 1 commit into
apache:masterfrom
Zouxxyy:dev/test-merge11

Conversation

@Zouxxyy
Copy link
Copy Markdown
Contributor

@Zouxxyy Zouxxyy commented May 13, 2026

Purpose

Follow-up of #7789. Extend SchemaMergingUtils.diffSchemaChanges to emit precise AddColumn for new struct fields nested inside ARRAY element / MAP value, instead of a coarse UpdateColumnType rewriting the whole nested type.

Falls back to UpdateColumnType when a nested field is removed or a map key type changes.

Tests

  • SchemaMergingUtilsTest
  • MergeIntoTableTestBase

@JingsongLi
Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit fa1b9dc into apache:master May 13, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants