[ https://issues.apache.org/jira/browse/HUDI-7602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aditya Goenka updated HUDI-7602: -------------------------------- Description: Github issue - [https://github.com/apache/hudi/issues/10983] Reproducible Code - ``` drop table hudi_table; create table hudi_table( field1 struct<colName decimal(11,2)>, field2 struct<colName decimal(10,2)> ) using hudi; insert into hudi_table (field1, field2) values ( named_struct('colName', 1.2), named_struct('colName', 3.4) ); insert into hudi_table (field1, field2) values ( named_struct('colName', 5.6), named_struct('colName', 7.8) ); -- Exception - Caused by: org.apache.avro.SchemaParseException: Can't redefine: colName ``` was: Github issue - [https://github.com/apache/hudi/issues/10983] Reproducible Code - ``` drop table hudi_table; create table hudi_table( field1 struct<colName decimal(11,2)>, field2 struct<colName decimal(10,2)> ) using hudi; insert into hudi_table (one, two) values ( named_struct('colName', 1.2), named_struct('colName', 3.4) ); insert into hudi_table (one, two) values ( named_struct('colName', 5.6), named_struct('colName', 7.8) ); ``` > Writer failing with exception when precision is different for two decimal > fields with same name > ----------------------------------------------------------------------------------------------- > > Key: HUDI-7602 > URL: https://issues.apache.org/jira/browse/HUDI-7602 > Project: Apache Hudi > Issue Type: Bug > Components: writer-core > Reporter: Aditya Goenka > Priority: Critical > Fix For: 0.15.0 > > > Github issue - [https://github.com/apache/hudi/issues/10983] > > Reproducible Code - > ``` > drop table hudi_table; > create table hudi_table( > field1 struct<colName decimal(11,2)>, > field2 struct<colName decimal(10,2)> > ) > using hudi; > > insert into hudi_table (field1, field2) > values ( > named_struct('colName', 1.2), > named_struct('colName', 3.4) > ); > > insert into hudi_table (field1, field2) > values ( > named_struct('colName', 5.6), > named_struct('colName', 7.8) > ); > -- Exception - Caused by: org.apache.avro.SchemaParseException: Can't > redefine: colName > ``` -- This message was sent by Atlassian Jira (v8.20.10#820010)