starocean999 commented on code in PR #8745:
URL: https://github.com/apache/incubator-doris/pull/8745#discussion_r843692272
##########
fe/fe-core/src/main/java/org/apache/doris/planner/RuntimeFilterGenerator.java:
##########
@@ -122,6 +122,24 @@ private RuntimeFilterGenerator(Analyzer analyzer) {
bloomFilterSizeLimits = new FilterSizeLimits(sessionVariable);
}
+ static class HasConjunctPredicate implements
com.google.common.base.Predicate<PlanNode> {
+ @Override
+ public boolean apply(PlanNode arg) {
+ // for simplicity, skip join node( which contains more than 1
tuple id )
+ return arg.getTupleIds().size() == 1 && !arg.conjuncts.isEmpty();
+ }
+ }
+
+ private static HashSet<TupleId> collectAllTupleIdsHavingConjunct(PlanNode
rootNode) {
+ HashSet<TupleId> tupleIds = new HashSet<>();
+ List<PlanNode> nodes = Lists.newArrayList();
+ rootNode.collectAll(new HasConjunctPredicate(), nodes);
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]