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-4039) Hive compiler sometimes fails in semantic analysis / optimisation stage when boolean variable appears in WHERE clause.
Date Wed, 20 Feb 2013 23:47:12 GMT

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

Hudson commented on HIVE-4039:
------------------------------

Integrated in Hive-trunk-h0.21 #1978 (See [https://builds.apache.org/job/Hive-trunk-h0.21/1978/])
    HIVE-4039 Hive compiler sometimes fails in semantic analysis / optimisation stage when
boolean
variable appears in WHERE clause. (Jezn Xu via namit) (Revision 1448135)

     Result = SUCCESS
namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1448135
Files : 
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/ppd/ExprWalkerProcFactory.java
* /hive/trunk/ql/src/test/queries/clientpositive/test_boolean_whereclause.q
* /hive/trunk/ql/src/test/results/clientpositive/test_boolean_whereclause.q.out

                
> Hive compiler sometimes fails in semantic analysis / optimisation stage when boolean
variable appears in WHERE clause.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-4039
>                 URL: https://issues.apache.org/jira/browse/HIVE-4039
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Jean Xu
>            Assignee: Jean Xu
>            Priority: Minor
>         Attachments: HIVE_4039.1.patch.txt
>
>
> Hive compiler fails with a NullPointerException in semantic analysis / optimisation stage
when a boolean variable appears in the WHERE clause in some cases. A minimal query to generate
this error is here:
> SELECT 1
> FROM (
> SELECT TRUE AS flag
> FROM dim_one_row:measurementsystems
> ) a
> WHERE flag;
> On the other hand, the following query is perfectly fine:
> SELECT 1
> FROM (
> SELECT TRUE AS flag
> FROM dim_one_row:measurementsystems
> ) a
> WHERE flag=TRUE;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message