Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.14.0
-
None
Description
The following query returns different results when both vectorized mapjoin and the new optimized hashtable are enabled.
hive> set hive.vectorized.execution.enabled=false;
hive> select s_suppkey, n_name from supplier, nation where s_nationkey = n_nationkey limit 25;
...
316869 JAPAN
1636869 RUSSIA
1096869 IRAN
7236869 RUSSIA
2276869 INDIA
8516869 ARGENTINA
2636869 MOZAMBIQUE
3836869 ROMANIA
2616869 FRANCE
But when vectorization is enabled, the results are
316869 JAPAN 1636869 RUSSIA 1096869 IRANIA 7236869 RUSSIA 2276869 INDIAA 8516869 ARGENTINA 2636869 MOZAMBIQUE 3836869 ROMANIAQUE 2616869 FRANCEAQUE
it works correctly with vectorization when the new optimized map-join hashtable is disabled
hive> set hive.vectorized.execution.enabled=true; hive> set hive.mapjoin.optimized.hashtable=false; hive> select s_suppkey, n_name from supplier, nation where s_nationkey = n_nationkey limit 25; 316869 JAPAN 1636869 RUSSIA 1096869 IRAN 7236869 RUSSIA 2276869 INDIA 8516869 ARGENTINA 2636869 MOZAMBIQUE 3836869 ROMANIA 2616869 FRANCE