Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Reviewed
-
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;