jasperjiaguo commented on code in PR #9420:
URL: https://github.com/apache/pinot/pull/9420#discussion_r980786409


##########
pinot-core/src/main/java/org/apache/pinot/core/operator/dociditerators/MVScanDocIdIterator.java:
##########
@@ -104,6 +108,28 @@ public long getNumEntriesScanned() {
     return _numEntriesScanned;
   }
 
+  /**
+   * This is a crude version of
+   * 
org.apache.pinot.controller.recommender.rules.utils.QueryInvertedSortedIndexRecommender#percentSelected
+   */
+  @Override
+  public float getEffectiveCardinality(boolean isAndDocIdSet) {
+    float numMatchingItems = _predicateEvaluator.getNumMatchingItems();
+    if (Float.isNaN(numMatchingItems) || _cardinality < 0) {
+      return 
ScanBasedDocIdIterator.super.getEffectiveCardinality(isAndDocIdSet);
+    }
+    int avgNumValuesPerMVEntry = _maxNumValuesPerMVEntry < 0

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