Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.3.0, 2.0.0, 2.1.0
-
None
Description
for isRepeating=true, checking isNull[selected[i]] might return incorrect results (without a heavy array fill of isNull).
VectorUDAFSum/Min/Max/Avg and SumDecimal impls need to be reviewed for this pattern.
private void iterateHasNullsRepeatingSelectionWithAggregationSelection( VectorAggregationBufferRow[] aggregationBufferSets, int aggregateIndex, <ValueType> value, int batchSize, int[] selection, boolean[] isNull) { for (int i=0; i < batchSize; ++i) { if (!isNull[selection[i]]) { Aggregation myagg = getCurrentAggregationBuffer( aggregationBufferSets, aggregateIndex, i); myagg.sumValue(value); } } }
Attachments
Attachments
Issue Links
- is required by
-
HIVE-12750 Vectorization logic not maintaining noNulls flag and isNull array properly causing wrong query results
- Resolved
- relates to
-
HIVE-11704 Create errata.txt file
- Closed