[fix][FE] fix be coredump when children of FunctionCallExpr is folded (#16064)

Co-authored-by: shizhiqiang03 <shizhiqiang03@meituan.com>
fix be coredump when children of FunctionCallExpr is folded
This commit is contained in:
shee
2023-01-30 15:25:00 +08:00
committed by GitHub
parent 4b6a4b3cf7
commit 6bebf92254
3 changed files with 62 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class CountDistinctToBitmapOrHLLRule implements ExprRewriteRule {
return expr;
}
// rewrite expr
FunctionParams newParams = new FunctionParams(false, fnExpr.getParams().exprs());
FunctionParams newParams = new FunctionParams(false, fnExpr.getChildren());
if (fnExpr.getChild(0).getType().isBitmapType()) {
FunctionCallExpr bitmapExpr = new FunctionCallExpr(FunctionSet.BITMAP_UNION_COUNT, newParams);
bitmapExpr.analyzeNoThrow(analyzer);