swuferhong commented on code in PR #21489:
URL: https://github.com/apache/flink/pull/21489#discussion_r1057120484


##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/utils/DynamicPartitionPruningUtils.java:
##########
@@ -275,6 +400,19 @@ && 
isSuitableFilter(origProgram.expandLocalRef(origProgram.getCondition()))) {
                 dimSideFactors.hasFilter = true;
             }
             visitDimSide(rel.getInput(0), dimSideFactors);
+        } else if (rel instanceof Join) {
+            Join join = (Join) rel;
+            visitDimSide(join.getLeft(), dimSideFactors);
+            visitDimSide(join.getRight(), dimSideFactors);
+        } else if (rel instanceof BatchPhysicalGroupAggregateBase) {
+            for (RelNode input : rel.getInputs()) {

Review Comment:
   > there is only one input for BatchPhysicalGroupAggregateBase
   
   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]

Reply via email to