You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Jean Xu (JIRA)" <ji...@apache.org> on 2013/02/19 20:11:12 UTC

[jira] [Updated] (HIVE-4039) Hive compiler sometimes fails in semantic analysis / optimisation stage when boolean variable appears in WHERE clause.

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

Jean Xu updated HIVE-4039:
--------------------------

    Assignee: Jean Xu
    
> 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
>
> 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