Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24305

avro decimal schema is not properly populating scale/precision if value is enclosed in quote

    XMLWordPrintableJSON

Details

    Description

      CREATE TABLE test_quoted_scale_precision STORED AS AVRO TBLPROPERTIES ('avro.schema.literal'='{"type":"record","name":"DecimalTest","namespace":"com.example.test","fields":[{"name":"Decimal24_6","type":["null",{"type":"bytes","logicalType":"decimal","precision":24,"scale":"6"}]}]}');
       
      desc test_quoted_scale_precision;
      // current output
      decimal24_6 decimal(24,0)
      // expected output
      decimal24_6 decimal(24,6)

       

      Attachments

        Issue Links

          Activity

            People

              nareshpr Naresh P R
              nareshpr Naresh P R
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m