[ 
https://issues.apache.org/jira/browse/HIVE-24305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Naresh P R updated HIVE-24305:
------------------------------
    Description: 
{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;
// current output
decimal24_6 decimal(24,0)
// expected output
decimal24_6 decimal(24,6){code}
 

  was:
{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}


> avro decimal schema is not properly populating scale/precision if value is 
> 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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {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;
> // current output
> decimal24_6 decimal(24,0)
> // expected output
> decimal24_6 decimal(24,6){code}
>  



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

Reply via email to