danny0405 commented on a change in pull request #11340: [Flink 14338] Upgrade 
Calcite version to 1.22 for Flink SQL
URL: https://github.com/apache/flink/pull/11340#discussion_r391529864
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/nodes/logical/FlinkLogicalCalc.scala
 ##########
 @@ -60,20 +67,23 @@ private class FlinkLogicalCalcConverter
   override def convert(rel: RelNode): RelNode = {
     val calc = rel.asInstanceOf[LogicalCalc]
     val newInput = RelOptRule.convert(calc.getInput, FlinkConventions.LOGICAL)
-    FlinkLogicalCalc.create(newInput, calc.getProgram)
+    FlinkLogicalCalc.create(newInput, ImmutableList.of(), calc.getProgram)
   }
 }
 
 object FlinkLogicalCalc {
   val CONVERTER: ConverterRule = new FlinkLogicalCalcConverter()
 
-  def create(input: RelNode, calcProgram: RexProgram): FlinkLogicalCalc = {
+  def create(
+      input: RelNode,
+      hints: JList[RelHint],
+      calcProgram: RexProgram): FlinkLogicalCalc = {
     val cluster = input.getCluster
-    val mq = cluster.getMetadataQuery
+    val mq = cluster.getMetadataQuery.asInstanceOf[RelMetadataQuery]
 
 Review comment:
   Yep, thanks.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to