zhangyue19921010 opened a new pull request, #11187: URL: https://github.com/apache/paimon/pull/11187
### Purpose Fixes #11186. A Java Data Evolution writer using `withWriteType(id, pt)` for a table declared as `(id, value, pt)` still extracts the partition from position 2. The write fails with an index error; reordering the full schema can read a value of the wrong type instead. Route a reusable view in the table's field order while passing the original input row to the file writer. Keep the full-row path used for generated columns. ### Tests `DataEvolutionPartialWriteTest` exercises two partial layouts, a reordered full layout and the original full layout. On unchanged upstream `f1ffd1369`, the first three fail during routing and the original layout passes. All four pass with the change and verify the committed partition and read-back values, including NULL for the omitted column. 34 selected tests passed on JDK 11.0.18, covering generated-column routing, existing write behavior, partitioned updates and nested defaults. Maven `verify` ran the selected suite twice; Checkstyle, Spotless, Enforcer and RAT passed without `fast-build`. Prepared with TRAE CLI. -- 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]
