hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-3225) NPE on a join query with authorization enabled
Date Mon, 23 Jul 2012 18:01:35 GMT

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

Ashutosh Chauhan commented on HIVE-3225:
----------------------------------------

@Francis,
Can you upload the patch on jira?
                
> NPE on a join query with authorization enabled
> ----------------------------------------------
>
>                 Key: HIVE-3225
>                 URL: https://issues.apache.org/jira/browse/HIVE-3225
>             Project: Hive
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 0.9.0
>            Reporter: Francis Liu
>            Assignee: Francis Liu
>
> when performing a join query which filters by a non-existent partition in the where clause
(ie):
> select t1.a as a1, t2.a as a2 from t1 join t2 on t1.a=t2.a where t2.part="non-existent";
> It returns an NPE. It seems that the partition since non-existent is not part of the
list of inputs (or maybe optimized out?). But the TableScanOperator still has a reference
to it which causes an NPE after tableUsePartLevelAuth.get() returns null.
> FAILED: Hive Internal Error: java.lang.NullPointerException(null)java.lang.NullPointerException
       at org.apache.hadoop.hive.ql.Driver.doAuthorization(Driver.java:617)
>         at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:486)
>         at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:336)        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:909)
>         at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:258) 
      at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:215)
>         at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:406)
>         at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:689)
>         at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:557)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message