Skip to content

Commit

Permalink
Add successful test
Browse files Browse the repository at this point in the history
  • Loading branch information
blaginin committed Nov 17, 2024
1 parent 639f236 commit 2691f80
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions datafusion/sqllogictest/test_files/union.slt
Original file line number Diff line number Diff line change
Expand Up @@ -763,5 +763,11 @@ SELECT NULL WHERE FALSE;
1

# Test Union of List Types. Issue: https://github.com/apache/datafusion/issues/12291
query error DataFusion error: type_coercion\ncaused by\nError during planning: Incompatible inputs for Union: Previous inputs were of type List(.*), but got incompatible type List(.*) on column 'x'
SELECT make_array(2) x UNION ALL SELECT make_array(now()) x;
query error DataFusion error: type_coercion\ncaused by\nError during planning: Incompatible inputs for Union: Previous inputs were of type List(.*), but got incompatible type List(.*) on column 'x'
SELECT make_array(2) x UNION ALL SELECT make_array(now()) x;

query ?
select make_array(arrow_cast(2, 'UInt8')) x UNION ALL SELECT make_array(arrow_cast(-2, 'Int8')) x;
----
[-2]
[2]

0 comments on commit 2691f80

Please sign in to comment.