You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Jonathan Vexler (Jira)" <ji...@apache.org> on 2025/07/31 18:55:00 UTC
[jira] [Created] (HUDI-9676) Avro HoodieAvroUtils.rewriteRecordWithNewSchema logic with renamed columns is wrong
Jonathan Vexler created HUDI-9676:
-------------------------------------
Summary: Avro HoodieAvroUtils.rewriteRecordWithNewSchema logic with renamed columns is wrong
Key: HUDI-9676
URL: https://issues.apache.org/jira/browse/HUDI-9676
Project: Apache Hudi
Issue Type: Bug
Components: reader-core, writer-core
Reporter: Jonathan Vexler
Fix For: 1.1.0
if (oldField != null && !renameCols.containsKey(field.name())) {
this is wrong for nested columns because rename cols the key is the full path to the field. So if we are renaming fieldName.colA to fieldName.colB and fieldName.colC to fieldName.colA, then oldField is not null, and renameCols won't contain colA because it actually contains fieldName.colA.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)