mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 21:02:58 +00:00
fix(sqlness): enforce order in union tests (#5190)
Add ORDER BY clause to subquery union tests Updated the SQL and result files for subquery union tests to include an ORDER BY clause, ensuring consistent result ordering. This change aligns with the test case from the DuckDB repository.
This commit is contained in:
@@ -63,7 +63,7 @@ Affected Rows: 0
|
||||
|
||||
-- subquery union, from:
|
||||
-- https://github.com/duckdb/duckdb/blob/9196dd9b0a163e6c8aada26218803d04be30c562/test/sql/subquery/table/test_subquery_union.test
|
||||
SELECT * FROM (SELECT 42) UNION ALL SELECT * FROM (SELECT 43);
|
||||
SELECT * FROM (SELECT 42) UNION ALL SELECT * FROM (SELECT 43) ORDER BY 1;
|
||||
|
||||
+-----------+
|
||||
| Int64(42) |
|
||||
|
||||
@@ -24,7 +24,7 @@ DROP TABLE test;
|
||||
|
||||
-- subquery union, from:
|
||||
-- https://github.com/duckdb/duckdb/blob/9196dd9b0a163e6c8aada26218803d04be30c562/test/sql/subquery/table/test_subquery_union.test
|
||||
SELECT * FROM (SELECT 42) UNION ALL SELECT * FROM (SELECT 43);
|
||||
SELECT * FROM (SELECT 42) UNION ALL SELECT * FROM (SELECT 43) ORDER BY 1;
|
||||
|
||||
-- table subquery, from:
|
||||
-- https://github.com/duckdb/duckdb/blob/8704c7d0807d6ce1e2ebcdf6398e1b6cc050e507/test/sql/subquery/table/test_table_subquery.test
|
||||
|
||||
Reference in New Issue
Block a user