Sh-Zh-7 commented on code in PR #15151:
URL: https://github.com/apache/iotdb/pull/15151#discussion_r2086435297
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/analyzer/ExpressionAnalyzer.java:
##########
@@ -798,16 +887,41 @@ protected Type visitFunctionCall(
}
Type type = metadata.getFunctionReturnType(functionName, argumentTypes);
+ FunctionKind functionKind = FunctionKind.SCALAR;
+ if (isAggregation) {
+ functionKind = FunctionKind.AGGREGATE;
+ } else {
+ boolean isWindow = metadata.isWindowFunction(session, functionName,
accessControl);
Review Comment:
If this function is aggregation function, we will still warp it into a
window function instance.
https://github.com/apache/iotdb/blob/243e17aced1be47f73d0170aa7ddb6c3ef0d55ae/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/TableOperatorGenerator.java#L3243-L3247
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]