In testing the ARRAY data type, it seems like UNWIND doesn't work for it like it does for LIST. We should support UNWIND for ARRAY too, considering it's just a special case of LIST.
kuzu> UNWIND CAST([[5,2,1],[2,3],[15,64,74]], 'INT64[][3]') AS x RETURN x;
Error: Binder exception: CAST(LIST_CREATION(LIST_CREATION(5,2,1),LIST_CREATION(2,3),LIST_CREATION(15,64,74)), INT64[][3]) has data type INT64[][3] but LIST was expected.
In testing the
ARRAY
data type, it seems likeUNWIND
doesn't work for it like it does forLIST
. We should supportUNWIND
forARRAY
too, considering it's just a special case ofLIST
.For
LIST
, this works fine: