Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 1.0.1
-
None
-
Hadoop 2.0.0-cdh4.3.0
Description
When performed the following query which include the modulus operator in impala, it will hit NullPointerException:
[MYRNDSVRVM311:21000] > select (3.55 % 2) from city;
Query: select (3.55 % 2) from city
ERROR: AnalysisException: null
CAUSED BY: NullPointerException: null
[MYRNDSVRVM311:21000] > select (3 % 2) from city limit 1;
Query: select (3 % 2) from city limit 1
Query finished, fetching results ...
-------
3 % 2 |
-------
1 |
-------
Returned 1 row(s) in 0.55s
[MYRNDSVRVM311:21000] >
When performed the same query in hive, everything works well. Impala query only works fine when we try to use modulus (%) between two integer.