hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KangHS (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-7521) Reference equality is used on Boolean in NullScanOptimizer#WhereFalseProcessor#process()
Date Mon, 11 Aug 2014 05:48:12 GMT

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

KangHS commented on HIVE-7521:
------------------------------

Thanks, Ashutosh Chauhan :)

> Reference equality is used on Boolean in NullScanOptimizer#WhereFalseProcessor#process()
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-7521
>                 URL: https://issues.apache.org/jira/browse/HIVE-7521
>             Project: Hive
>          Issue Type: Bug
>          Components: Physical Optimizer
>    Affects Versions: 0.14.0
>            Reporter: Ted Yu
>            Assignee: KangHS
>            Priority: Minor
>             Fix For: 0.14.0
>
>         Attachments: HIVE-7521.patch
>
>
> {code}
>       ExprNodeConstantDesc c = (ExprNodeConstantDesc) condition;
>       if (c.getValue() != Boolean.FALSE) {
>         return null;
>       }
> {code}
> equals() should be called instead.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message