You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Prasanth Jayachandran (JIRA)" <ji...@apache.org> on 2015/08/06 22:33:05 UTC
[jira] [Commented] (HIVE-11493) Predicate with integer column
equals double evaluates to false
[ https://issues.apache.org/jira/browse/HIVE-11493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14660754#comment-14660754 ]
Prasanth Jayachandran commented on HIVE-11493:
----------------------------------------------
This happens even when constant propagation and cbo is disabled.
> Predicate with integer column equals double evaluates to false
> --------------------------------------------------------------
>
> Key: HIVE-11493
> URL: https://issues.apache.org/jira/browse/HIVE-11493
> Project: Hive
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Prasanth Jayachandran
> Assignee: Pengcheng Xiong
> Priority: Blocker
>
> Filters with integer column equals double constant evaluates to false everytime. Negative double constant works fine.
> {code:title=explain select * from orc_ppd where t = 10.0;}
> OK
> Stage-0
> Fetch Operator
> limit:-1
> Select Operator [SEL_2]
> outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13"]
> Filter Operator [FIL_1]
> predicate:false (type: boolean)
> TableScan [TS_0]
> alias:orc_ppd
> {code}
> {code:title=explain select * from orc_ppd where t = -10.0;}
> OK
> Stage-0
> Fetch Operator
> limit:-1
> Select Operator [SEL_2]
> outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13"]
> Filter Operator [FIL_1]
> predicate:(t = (- 10.0)) (type: boolean)
> TableScan [TS_0]
> alias:orc_ppd
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)