Panic with struct
function with arguments intermixed arrays / scalar
#9773
Labels
bug
Something isn't working
struct
function with arguments intermixed arrays / scalar
#9773
Describe the bug
struct
works fine if all arguments are scalars, or all arguments are arrays, but panic's if some arguments are scalars and some are arraysTo Reproduce
❯ create table t(x int) as values (1), (2), (3);
0 rows in set. Query took 0.014 seconds.
❯ select struct(x, 25) from t;
thread 'main' panicked at /Users/andrewlamb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-array-51.0.0/src/array/struct_array.rs:90:46:
called
Result::unwrap()
on anErr
value: InvalidArgumentError("Incorrect array length for StructArray field "c1", expected 3 got 1")note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceThe text was updated successfully, but these errors were encountered: