-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
array literal with struct occurs error, the reason is that we only consider Array function as valid type. It seems we should also accept Struct
if fun == BuiltinScalarFunction::MakeArray {
values.push(value);
} else {
// BuiltinScalarFunction::Struct
return not_impl_err!(
"ScalarFunctions without MakeArray are not supported: {value}"
);
}To Reproduce
query error DataFusion error: This feature is not implemented: ScalarFunctions without MakeArray are not supported: struct\(Utf8\("x"\), Int64\(1\)\)
select [struct('x', 1)];
Expected behavior
We can see make_array did the good job here.
query ?
select make_array(struct('x', 1));
----
[{c0: x, c1: 1}]
Additional context
Bug found while looking into #8867
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working