matriv commented on a change in pull request #19205: URL: https://github.com/apache/flink/pull/19205#discussion_r833406719
########## File path: flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/schema/LegacyCatalogSourceTable.scala ########## @@ -75,25 +76,22 @@ class LegacyCatalogSourceTable[T]( override def toRel(context: RelOptTable.ToRelContext): RelNode = { val cluster = context.getCluster - val flinkContext = cluster - .getPlanner - .getContext - .unwrap(classOf[FlinkContext]) + val flinkContext = ShortcutUtils.unwrapContext(cluster) Review comment: yep, it's used in other places as well, otherwise I could just unwrap the `tableConfig` only. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org