[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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user