Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-7602

Writer failing with exception when precision is different for two decimal fields with same name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • 0.15.0, 1.0.0
    • writer-core
    • None

    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

      ```

      Attachments

        Activity

          People

            guoyihua Ethan Guo
            adityagoenka Aditya Goenka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: