sajjad-moradi commented on a change in pull request #6869: URL: https://github.com/apache/incubator-pinot/pull/6869#discussion_r628640710
########## File path: pinot-controller/src/main/java/org/apache/pinot/controller/recommender/rules/RulesToExecute.java ########## @@ -160,9 +169,14 @@ public boolean isRecommendRealtimeProvisioning() { return _recommendRealtimeProvisioning; } + public boolean isRecommendSegmentSize() { + return _recommendSegmentSize; + } + // Be careful with the sequence, each rule can execute individually // but a rule may depend on its previous rule when they both fired public enum Rule { + SegmentSizeRule, // This rule must be the first rule. It provides segment count, segment size, numRows in segments which are used in other rules. It also adjust cardinality per segment for different columns. Review comment: The only adjustment to cardinality is that we cap it to the segment size. Per previous comments, it's not useful if we run this rule for realtime-only tables. For offline or hybrid table, this rule needs to be run first. So I'm going to modify recommender execution to enforce these to conditions: - disable the rule for realtime-only tables - enable the rule for offline or hybrid tables -- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org