JingsongLi 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_r311594995
##########
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:
Without this PR, are there no cases? Maybe we can do these cast in functions?
I think getResultType and getValueExpression(after type inference) have
different type is weird.
----------------------------------------------------------------
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