Open findepi opened 2 weeks ago
Quoting @jayzhan211 https://github.com/apache/datafusion/issues/12292#issuecomment-2324827013
We should return error since integer is not able to cast to timestamp and vice versa
D SELECT DISTINCT x[0] FROM (SELECT [now()] x UNION ALL SELECT [2] x); Conversion Error: Unimplemented type for cast (INTEGER -> TIMESTAMP WITH TIME ZONE) LINE 1: ...OM (SELECT [now()] x UNION ALL SELECT [2] x);
Describe the bug
Int64
andtimestamp with time zone
are not coercible:yet, the arrays of these types are
To Reproduce
Expected behavior
Failure, because array element types cannot be coerced.
Additional context
No response