[
https://issues.apache.org/jira/browse/HIVE-18627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16354414#comment-16354414
]
Gopal V commented on HIVE-18627:
--------------------------------
This is the test that fails if I fix it by Boxing from Decimal -> Double.
If I do Decimal -> Float -> Double, it passes. This test fails if I fixed it
without the new Enum to box those two differently.
I'll add a 1 row Double test, to cover the broken case.
> PPD: Handle FLOAT boxing differently for single/double precision constants
> --------------------------------------------------------------------------
>
> Key: HIVE-18627
> URL: https://issues.apache.org/jira/browse/HIVE-18627
> Project: Hive
> Issue Type: Bug
> Components: Types
> Reporter: Gopal V
> Assignee: Gopal V
> Priority: Major
> Attachments: HIVE-18627.1.patch
>
>
> Constants like 0.1 and 0.3 are differently boxed based on intermediate
> precision of the compiler codepath.
> Disabling CBO produces 0.1BD constants which fail to box correctly to
> Double/Float.
> Enabling CBO fixes this issue, but cannot be applied all queries in Hive.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)