[vectorzied](function) fix array_map function analyzed failed with order by clause (#18676)

* [vectorzied](function) fix array_map function analyzed failed with order by clause

* add test
This commit is contained in:
zhangstar333
2023-04-18 12:01:44 +08:00
committed by GitHub
parent 3a6eae0ec5
commit 6b351a2818
3 changed files with 13 additions and 2 deletions

View File

@ -82,11 +82,14 @@ public class LambdaFunctionExpr extends Expr {
nameSet.add(names.get(i));
}
Expr param = params.get(i);
if (!param.isAnalyzed()) {
param.analyze(analyzer);
}
Type paramType = param.getType();
if (!paramType.isArrayType()) {
throw new AnalysisException(
"The lambda function of params must be array type, now " + (i + 1) + "th is "
+ paramType.toString());
"The lambda function of params must be array type, now the param of "
+ param.toColumnLabel() + " is " + paramType.toString());
}
// this ColumnRefExpr record the unique columnId, which is used for BE
// so could insert nested column by order.