shenyu0127 commented on code in PR #11348:
URL: https://github.com/apache/pinot/pull/11348#discussion_r1297643250
##########
pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/BaseDistinctAggregateAggregationFunction.java:
##########
@@ -147,7 +149,7 @@ protected void svAggregate(int length,
AggregationResultHolder aggregationResult
// For dictionary-encoded expression, store dictionary ids into the bitmap
Dictionary dictionary = blockValSet.getDictionary();
- if (dictionary != null) {
+ if (dictionary != null && !_nullHandlingEnabled) {
Review Comment:
We cannot use dictionary ID when NULL handling is enabled because
Integer.MIN_VALUE and NULL share the same dictionary ID.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]