Jackie-Jiang commented on a change in pull request #5154: Fix the NPE for 
DISTINCT aggregation function when no record is selected
URL: https://github.com/apache/incubator-pinot/pull/5154#discussion_r395221509
 
 

 ##########
 File path: 
pinot-core/src/test/java/org/apache/pinot/queries/DistinctQueriesTest.java
 ##########
 @@ -685,6 +694,18 @@ public void testDistinctWithFilter()
         sortedResults.add(new Record(new Object[]{"California", "San Mateo", 
400000}));
         sortedResults.add(new Record(new Object[]{"California", "Sunnyvale", 
300000}));
         runQueryInterSegmentWithOrderBy(orderByQuery, sortedResults, new 
String[]{"State", "City", "SaleAmount"});
+
+        String emptyResultQuery =
 
 Review comment:
   As long as it is using the `DistinctAggregationFunction.merge()` to merge 
the DistinctTables, it is handled. Check the fix in  
`DistinctAggregationFunction.merge()`.
   Let me try to enhance the test to cover that.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to