lsyldliu commented on code in PR #23035:
URL: https://github.com/apache/flink/pull/23035#discussion_r1271222506


##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/rules/logical/FlinkCalcMergeRule.scala:
##########
@@ -65,6 +66,23 @@ class FlinkCalcMergeRule[C <: Calc](calcClass: Class[C])
     val topCalc: Calc = call.rel(0)
     val bottomCalc: Calc = call.rel(1)
 
+    val newCalc = merge(topCalc, bottomCalc)

Review Comment:
   We need it, the merge logic can be reused by `ReplaceScanWithCalcShuttle`. I 
have extracted it to util method to `FlinkRelUtil`



-- 
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