Skip to content

Commit

Permalink
Add extra test to fix other issue with schema metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjunetime committed Oct 22, 2024
1 parent e681a37 commit 32a1d2b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion datafusion/sqllogictest/test_files/metadata.slt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,21 @@ no_baz
no_foo
NULL


# Regression test: missing schema metadata from union when schema with metadata isn't the first one
# and also ensure it works fine with multiple unions
query T
select name from (
SELECT NULL::string as name
UNION ALL
SELECT nonnull_name as name FROM "table_with_metadata"
UNION ALL
SELECT NULL::string as name
) group by name order by name;
----
no_bar
no_baz
no_foo
NULL

statement ok
drop table table_with_metadata;

0 comments on commit 32a1d2b

Please sign in to comment.