Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coerce Array inner types #13452

Merged
merged 19 commits into from
Nov 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions datafusion/sqllogictest/test_files/union.slt
Original file line number Diff line number Diff line change
Expand Up @@ -763,9 +763,5 @@ SELECT NULL WHERE FALSE;
1

# Test Union of List Types. Issue: https://github.com/apache/datafusion/issues/12291
query error
SELECT make_array(2) x UNION ALL SELECT make_array(now()) x;
----
DataFusion error: type_coercion
caused by
Error during planning: Incompatible inputs for Union: Previous inputs were of type List(Field { name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }), but got incompatible type List(Field { name: "item", data_type: Timestamp(Nanosecond, Some("+00:00")), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }) on column 'x'
query error DataFusion error: type_coercion
blaginin marked this conversation as resolved.
Show resolved Hide resolved
SELECT make_array(2) x UNION ALL SELECT make_array(now()) x;
Loading