Skip to content

Commit

Permalink
sqllogicaltest: fix unstable slt case. (apache#5095)
Browse files Browse the repository at this point in the history
* sqllogicaltest: fix unstable slt case.

* sqllogicaltest: fix unstable slt case.
  • Loading branch information
jackwener committed Jan 28, 2023
1 parent cd40057 commit 9653796
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions datafusion/core/tests/sqllogictests/test_files/union.slt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ query I
SELECT 1 as x
UNION ALL
SELECT 2 as x
ORDER BY x
----
1
2
Expand Down Expand Up @@ -119,6 +120,7 @@ query I
SELECT 1 as x
UNION
SELECT 1 as x
ORDER BY x
----
1

Expand Down Expand Up @@ -147,33 +149,32 @@ SELECT COUNT(*) FROM (

# union_schemas
query I
SELECT 1 A UNION ALL SELECT 2 order by 1
SELECT 1 A UNION ALL SELECT 2 ORDER BY 1
----
1
2

# union_schemas
query I
SELECT 1 UNION SELECT 2 order by 1
SELECT 1 UNION SELECT 2 ORDER BY 1
----
1
2

# union_with_except_input
query T
SELECT * FROM (
(
SELECT name FROM t1
EXCEPT
SELECT name FROM t2
)
UNION ALL
(
SELECT name FROM t2
EXCEPT
SELECT name FROM t1
)
) ORDER BY name
(
SELECT name FROM t1
EXCEPT
SELECT name FROM t2
)
UNION ALL
(
SELECT name FROM t2
EXCEPT
SELECT name FROM t1
)
ORDER BY name
----
Alice
John
Expand All @@ -191,6 +192,7 @@ UNION ALL
EXCEPT
SELECT id, name FROM t1
)
ORDER BY name
----
3 Alice
3 John

0 comments on commit 9653796

Please sign in to comment.