Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
When you have a sequence of RedueSinks on constants you get this error:
java.lang.NullPointerException at org.apache.hadoop.hive.ql.optimizer.ReduceSinkDeDuplication$ReduceSinkDeduplicateProcFactory$ReducerReducerProc.getPartitionAndKeyColumnMapping(ReduceSinkDeDuplication.java:416)
The e.g. to generate this si:
select p_name from (select p_name from part distribute by 1 sort by 1) p distribute by 1 sort by 1
Sorry for the contrived e.g., but this actually happens when we stack windowing clauses (see PTF-Windowing branch)