提交 7da31782 编写于 作者: S shenglian zhou

set sql expr type when no children for function for sql like select first(c6)...

set sql expr type when no children for function for sql like select first(c6) - last(c6) *12 / count(*) from ca_db0.ca_stb0 group by c5
上级 e4cb5c29
...@@ -4403,6 +4403,12 @@ static int32_t validateSQLExprItemSQLFunc(SSqlCmd* pCmd, tSqlExpr* pExpr, ...@@ -4403,6 +4403,12 @@ static int32_t validateSQLExprItemSQLFunc(SSqlCmd* pCmd, tSqlExpr* pExpr,
} }
free(childrenTypes); free(childrenTypes);
} else {
if (TSDB_FUNC_IS_SCALAR(functionId)) {
*type = SQLEXPR_TYPE_SCALAR;
} else {
*type = SQLEXPR_TYPE_AGG;
}
} }
if (!TSDB_FUNC_IS_SCALAR(functionId)) { if (!TSDB_FUNC_IS_SCALAR(functionId)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册