Open
Description
Describe the bug
make_array()
will error if the types can not be coerced to a common type, as in postgres and spark
To Reproduce
Run this query (see query_array_scalar_coerce
test added in #3122)
SELECT [1, 2, '3']
This results in an error:
"Error during planning: Coercion from [Int64, Int64, Utf8] to the signature VariadicEqual failed.",);
Expected behavior
I expect this to return like postgres where it has coerced all the arguments to int (tried to coerce all arguments to the same type as the first, which in this case is 1
and thus int
alamb=# select array[1, 2, '3'];
array
---------
{1,2,3}
(1 row)
Additional context
Found in #3122