matriv commented on a change in pull request #18908:
URL: https://github.com/apache/flink/pull/18908#discussion_r814650647
##########
File path:
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/optimize/BatchCommonSubGraphBasedOptimizer.scala
##########
@@ -77,9 +78,10 @@ class BatchCommonSubGraphBasedOptimizer(planner:
BatchPlanner)
* @return The optimized [[RelNode]] tree
*/
private def optimizeTree(relNode: RelNode): RelNode = {
- val config = planner.getTableConfig
- val programs = TableConfigUtils.getCalciteConfig(config).getBatchProgram
- .getOrElse(FlinkBatchProgram.buildProgram(config.getConfiguration))
+ val plannerConfig = planner.getConfiguration
+ val tableConfig = planner.getTableConfig
+ val programs =
TableConfigUtils.getCalciteConfig(tableConfig).getBatchProgram
Review comment:
I'd prefer to rework this in an upcoming PR if that's ok.
--
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]