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

 ##########
 File path: 
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/plan/rules/common/LogicalWindowAggregateRule.scala
 ##########
 @@ -61,8 +71,15 @@ abstract class LogicalWindowAggregateRule(ruleName: String)
     * that the types are equivalent.
     */
   override def onMatch(call: RelOptRuleCall): Unit = {
-    val agg = call.rel[LogicalAggregate](0)
-    val project = 
agg.getInput.asInstanceOf[HepRelVertex].getCurrentRel.asInstanceOf[LogicalProject]
+    val agg0 = call.rel[LogicalAggregate](0)
+    val project0 = trimHep(agg0.getInput).asInstanceOf[LogicalProject]
 
 Review comment:
   val project0: LogicalProject =  call.rel(1)
   

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


With regards,
Apache Git Services

Reply via email to