diff --git a/src/common/function/src/helper.rs b/src/common/function/src/helper.rs index c707c725ba48..6f549d6619e3 100644 --- a/src/common/function/src/helper.rs +++ b/src/common/function/src/helper.rs @@ -17,7 +17,7 @@ use datatypes::prelude::ConcreteDataType; /// Create a function signature with oneof signatures of interleaving two arguments. pub fn one_of_sigs2(args1: Vec, args2: Vec) -> Signature { - let mut sigs = Vec::with_capacity(args1.len() + args2.len()); + let mut sigs = Vec::with_capacity(args1.len() * args2.len()); for arg1 in &args1 { for arg2 in &args2 {