[feature](function) Support for aggregate function foreach combiner for some error function (#31913)

Support for aggregate function foreach combiner for some error function
This commit is contained in:
Mryange
2024-03-20 18:13:27 +08:00
committed by yiguolei
parent b6a35d68b0
commit b92a764665
9 changed files with 388 additions and 26 deletions

View File

@ -62,7 +62,7 @@ public class ForEachCombinator extends AggregateFunction
@Override
public List<FunctionSignature> getSignatures() {
return nested.getSignatures().stream().map(sig -> {
return sig.withReturnType(ArrayType.of(sig.returnType)).withArgumentTypes(false,
return sig.withReturnType(ArrayType.of(sig.returnType)).withArgumentTypes(sig.hasVarArgs,
sig.argumentsTypes.stream().map(arg -> {
return ArrayType.of(arg);
}).collect(ImmutableList.toImmutableList()));