hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-3225) NPE on a join query with authorization enabled
Date Tue, 24 Jul 2012 06:48:34 GMT

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

Hudson commented on HIVE-3225:
------------------------------

Integrated in Hive-trunk-h0.21 #1563 (See [https://builds.apache.org/job/Hive-trunk-h0.21/1563/])
    HIVE-3225 : NPE on a join query with authorization enabled (Francis Liu via Ashutosh Chauhan)
(Revision 1364853)

     Result = FAILURE
hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1364853
Files : 
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
* /hive/trunk/ql/src/test/queries/clientnegative/join_nonexistent_part.q
* /hive/trunk/ql/src/test/results/clientnegative/join_nonexistent_part.q.out

                
> 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
>             Fix For: 0.10.0
>
>         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

        

Mime
View raw message