[
https://issues.apache.org/jira/browse/HUDI-9676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Danny Chen closed HUDI-9676.
----------------------------
Reviewers: Danny Chen
Resolution: Fixed
Fixed via master branch: dc046c4c1b54d9f65a5bc939f027b9509dfad5ad
> 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
> Assignee: Jonathan Vexler
> Priority: Critical
> Labels: pull-request-available
> 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)