You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "nsivabalan (via GitHub)" <gi...@apache.org> on 2026/06/25 03:45:09 UTC

Re: [I] Schema on read schema evolution does not support dropping a column and then renaming another one to the original columns name [hudi]

nsivabalan commented on issue #16665:
URL: https://github.com/apache/hudi/issues/16665#issuecomment-4795629603

   This appears to be fixed on master by [HUDI-9683 / PR #13672](https://github.com/apache/hudi/commit/f51c36fd64398718c039b26c15767e793b82904e), which reworks `HoodieInternalRowUtils.genUnsafeRowWriter` to consult the rename map first (via `lookupRenamedField`) before looking up the field name in the previous schema. That prevents the case where the new schema's `col1` (renamed from `col2`) was matching the dropped previous `col1`. Coverage was added in `TestHoodieInternalRowUtils` (`Test rewrite row with renamed columns`, `Test rewrite row with columns swap`). Closing as fixed — please reopen if you can still reproduce on master.


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org