From 1d04fb2e0ba39790eeb220c6e7a2358b9c869edd Mon Sep 17 00:00:00 2001 From: Dong Shi Date: Thu, 17 Jun 2021 17:43:18 -0700 Subject: [PATCH] Increase MAX_ARITY of zip function to 7 Update MAX_ARITY of zip function to 7. This way it is able to accept more than 5 arguments to zip. --- .../java/com/facebook/presto/operator/scalar/ZipFunction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presto-main/src/main/java/com/facebook/presto/operator/scalar/ZipFunction.java b/presto-main/src/main/java/com/facebook/presto/operator/scalar/ZipFunction.java index fd1e819b12e05..78bca4a9bac56 100644 --- a/presto-main/src/main/java/com/facebook/presto/operator/scalar/ZipFunction.java +++ b/presto-main/src/main/java/com/facebook/presto/operator/scalar/ZipFunction.java @@ -48,7 +48,7 @@ public final class ZipFunction extends SqlScalarFunction { public static final int MIN_ARITY = 2; - public static final int MAX_ARITY = 5; + public static final int MAX_ARITY = 7; public static final ZipFunction[] ZIP_FUNCTIONS; private static final MethodHandle METHOD_HANDLE = methodHandle(ZipFunction.class, "zip", List.class, Block[].class);