Akshat-Jain commented on code in PR #16682:
URL: https://github.com/apache/druid/pull/16682#discussion_r1680956671


##########
extensions-core/datasketches/src/main/java/org/apache/druid/query/aggregation/datasketches/hll/sql/HllSketchBaseSqlAggregator.java:
##########
@@ -180,6 +183,16 @@ public Aggregation toDruidAggregation(
       }
     }
 
+    if (aggregatorFactory == null) {
+      plannerContext.setPlanningError(
+          "Using APPROX_COUNT_DISTINCT() or enabling approximation with 
COUNT(DISTINCT) is not supported for"
+          + " %s column. You can disable approximation, use COUNT(DISTINCT %s) 
and rerun the query.",

Review Comment:
   Done



-- 
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]

Reply via email to