[ 
https://issues.apache.org/jira/browse/HIVE-2378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094344#comment-13094344
 ] 

Hudson commented on HIVE-2378:
------------------------------

Integrated in Hive-trunk-h0.21 #925 (See 
[https://builds.apache.org/job/Hive-trunk-h0.21/925/])
    HIVE-2378. Warn user that precision is lost when bigint is implicitly cast 
to double. (Kevin Wilfong via Siying Dong)

sdong : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1163455
Files : 
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ErrorMsg.java
* 
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/ExprNodeGenericFuncDesc.java
* /hive/trunk/ql/src/test/queries/clientnegative/compare_double_bigint.q
* /hive/trunk/ql/src/test/queries/clientnegative/compare_string_bigint.q
* /hive/trunk/ql/src/test/results/clientnegative/compare_double_bigint.q.out
* /hive/trunk/ql/src/test/results/clientnegative/compare_string_bigint.q.out


> Warn user that precision is lost when bigint is implicitly cast to double.
> --------------------------------------------------------------------------
>
>                 Key: HIVE-2378
>                 URL: https://issues.apache.org/jira/browse/HIVE-2378
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Kevin Wilfong
>            Assignee: Kevin Wilfong
>         Attachments: HIVE-2378.1.patch.txt, HIVE-2378.2.patch.txt, 
> HIVE-2378.3.patch.txt
>
>
> When a bigint is implicitly cast to a double (when a bigint is involved in an 
> equality expression with a string or double) precision may be lost, resulting 
> in unexpected behavior.  Until we fix the underlying issue we should throw an 
> error in strict mode, and a warning in nonstrict mode alerting the user about 
> this.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to