wuchong commented on a change in pull request #9331: 
[FLINK-13523][table-planner-blink] Verify and correct arithmetic function's 
semantic for Blink planner
URL: https://github.com/apache/flink/pull/9331#discussion_r311582203
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/codegen/agg/DeclarativeAggCodeGen.scala
 ##########
 @@ -204,8 +204,13 @@ class DeclarativeAggCodeGen(
   }
 
   def getValue(generator: ExprCodeGenerator): GeneratedExpression = {
-    val resolvedGetValueExpression = function.getValueExpression
+    val expr = function.getValueExpression
       .accept(ResolveReference())
+    val resolvedGetValueExpression = ApiExpressionUtils.unresolvedCall(
 
 Review comment:
   IIUC, for example, `AVG(int)` will be expressed `sum(int)/bigint_count` in 
blink planner which will get `bigint` result. There are many other cases 
similar to this.

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