Describe the bug
array_repeat can panic for list inputs when len * count overflows while calculating the repeated inner value count.
To Reproduce
SELECT array_repeat([1,2,3], 9223372036854775807);
Actual behavior
thread 'main' panicked at datafusion/functions-nested/src/repeat.rs:245:32:
attempt to multiply with overflow
Expected behavior
Return an execution error for an output-size overflow instead of panicking.
Describe the bug
array_repeatcan panic for list inputs whenlen * countoverflows while calculating the repeated inner value count.To Reproduce
Actual behavior
Expected behavior
Return an execution error for an output-size overflow instead of panicking.