[
https://issues.apache.org/jira/browse/HUDI-7602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kate Huber updated HUDI-7602:
-----------------------------
Sprint: Hudi 1.0 Sprint P1 Tasks
> 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
> Assignee: Ethan Guo (this is the old account; please use "yihua")
> Priority: Critical
> Fix For: 0.16.0, 1.0.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)