Hive
  1. Hive
  2. HIVE-4039

Hive compiler sometimes fails in semantic analysis / optimisation stage when boolean variable appears in WHERE clause.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: Query Processor
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      I have changed the code, and added in a test file

      Description

      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;

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Jean Xu
            Reporter:
            Jean Xu
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development