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

Jason Dere updated HIVE-10270:
------------------------------
    Attachment: HIVE-10270.2.patch

I believe the test failures were due to the fact that BinarySortableSerDe 
relies on BigDecimal precision, whereas other parts of Hive rely on the SQL 
precision value.
Attaching patch v2 which fixes BinarySortableSerDe by using 
HiveDecimal.bigDecimalValue().precision() rather than HiveDecimal.precision(). 
[~xuefuz], are there any other areas where we would have to make similar 
changes?

> Cannot use Decimal constants less than 0.1BD
> --------------------------------------------
>
>                 Key: HIVE-10270
>                 URL: https://issues.apache.org/jira/browse/HIVE-10270
>             Project: Hive
>          Issue Type: Bug
>          Components: Types
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>         Attachments: HIVE-10270.1.patch, HIVE-10270.2.patch
>
>
> {noformat}
> hive> select 0.09765625BD;
> FAILED: IllegalArgumentException Decimal scale must be less than or equal to 
> precision
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to