Jackie-Jiang commented on a change in pull request #7664:
URL: https://github.com/apache/pinot/pull/7664#discussion_r739577623



##########
File path: 
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java
##########
@@ -129,6 +130,7 @@
 
   private final int _defaultHllLog2m;
   private final boolean _enableQueryLimitOverride;
+  private final boolean _enableSegmentPartitionedDistinctCountOverride;

Review comment:
       I don't think we need a config for this. We should always override if 
the distinctcount column is segment partitioned

##########
File path: 
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java
##########
@@ -270,6 +274,11 @@ private BrokerResponseNative handleSQLRequest(long 
requestId, String query, Json
     if (_enableQueryLimitOverride) {
       handleQueryLimitOverride(pinotQuery, _queryResponseLimit);
     }
+    if (_enableSegmentPartitionedDistinctCountOverride
+        || 
QueryOptionsUtils.enableSegmentPartitionedDistinctCountOverride(pinotQuery.getQueryOptions()))
 {
+      handleSegmentPartitionedDistinctCountOverride(pinotQuery,

Review comment:
       This need to be done as a query optimizer. You won't be able to get the 
table config with the raw table name




-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to