924060929 commented on code in PR #12147: URL: https://github.com/apache/doris/pull/12147#discussion_r957308176
########## fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/JobContext.java: ########## @@ -19,22 +19,29 @@ import org.apache.doris.nereids.CascadesContext; import org.apache.doris.nereids.properties.PhysicalProperties; +import org.apache.doris.nereids.rules.RuleType; + +import com.google.common.collect.Maps; + +import java.util.Map; /** * Context for one job in Nereids' cascades framework. */ public class JobContext { - private final CascadesContext cascadesContext; - private final PhysicalProperties requiredProperties; - private double costUpperBound; + protected final CascadesContext cascadesContext; + protected final PhysicalProperties requiredProperties; + protected double costUpperBound; + + protected Map<RuleType, Integer> ruleInvokeTimes = Maps.newLinkedHashMap(); Review Comment: this metrics just use to detect dead loop in UT, in the future we should add a session variable to check it. -- 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...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org