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

Ashutosh Chauhan updated HIVE-7452:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.14.0
         Assignee: KangHS
           Status: Resolved  (was: Patch Available)

Committed to trunk. Thanks, KangHS!

> Boolean comparison is done through reference equality rather than using equals
> ------------------------------------------------------------------------------
>
>                 Key: HIVE-7452
>                 URL: https://issues.apache.org/jira/browse/HIVE-7452
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: KangHS
>            Priority: Minor
>             Fix For: 0.14.0
>
>         Attachments: HIVE-7452.patch
>
>
> In Driver#doAuthorization():
> {code}
>         if (tbl != null && !tableAuthChecked.contains(tbl.getTableName()) &&
>             !(tableUsePartLevelAuth.get(tbl.getTableName()) == Boolean.TRUE)) 
> {
> {code}
> The above comparison should be done using .equals() method.
> The comparison below doesn't evaluate to true:
> {code}
>     Boolean b = new Boolean(true);
>     if (b == Boolean.TRUE) {
> {code}



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

Reply via email to