You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Naresh P R (Jira)" <ji...@apache.org> on 2020/10/23 01:15:00 UTC

[jira] [Created] (HIVE-24305) avro decimal schema is not properly populating scale/precision if enclosed in quote

Naresh P R created HIVE-24305:
---------------------------------

             Summary: avro decimal schema is not properly populating scale/precision if enclosed in quote
                 Key: HIVE-24305
                 URL: https://issues.apache.org/jira/browse/HIVE-24305
             Project: Hive
          Issue Type: Bug
            Reporter: Naresh P R
            Assignee: Naresh P R


{code:java}
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;
// decimal24_6 decimal(24,0)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)