You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Francis Liu (JIRA)" <ji...@apache.org> on 2012/07/23 20:20:34 UTC

[jira] [Updated] (HIVE-3225) NPE on a join query with authorization enabled

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

Francis Liu updated HIVE-3225:
------------------------------

    Attachment: HIVE-3225.patch
    
> 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
>         Attachments: HIVE-3225.patch
>
>
> 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