Zouxxyy opened a new pull request, #7487: URL: https://github.com/apache/paimon/pull/7487
### Purpose When using `write.merge-schema=true`, nested struct fields were matched by position instead of by name, causing data to be written to wrong fields. Fix: 1. `PaimonAnalysis.addCastToStructByName`: Reject when source struct has extra fields, so merge-schema path handles it instead of silently dropping data. 2. `SchemaHelper`: Recursive by-name column alignment for nested structs after schema merge. ### Tests - SQL/DataFrame: nested struct new fields in different order (verify by-name) - Three-level deep nested struct - Nested new fields + top-level new column together - Nested struct with missing fields, missing + new fields, multiple sequential merges ### API and Format No. ### Documentation No. ### Generative AI tooling Generated-by: Kiro (Claude Opus 4.6) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
