You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/03/12 11:33:52 UTC

[GitHub] [flink] danny0405 commented on a change in pull request #11340: [Flink 14338] Upgrade Calcite version to 1.22 for Flink SQL

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:
users@infra.apache.org


With regards,
Apache Git Services