From 80fa668e5bbd1a14d43baab42238df47f9b26005 Mon Sep 17 00:00:00 2001 From: "Lei, HUANG" Date: Wed, 18 Dec 2024 15:55:30 +0800 Subject: [PATCH] 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. --- tests/cases/standalone/common/subquery/table.result | 2 +- tests/cases/standalone/common/subquery/table.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cases/standalone/common/subquery/table.result b/tests/cases/standalone/common/subquery/table.result index 8cea3aed13e2..549a38754916 100644 --- a/tests/cases/standalone/common/subquery/table.result +++ b/tests/cases/standalone/common/subquery/table.result @@ -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) | diff --git a/tests/cases/standalone/common/subquery/table.sql b/tests/cases/standalone/common/subquery/table.sql index 9f53aef301f4..d49f3af739a6 100644 --- a/tests/cases/standalone/common/subquery/table.sql +++ b/tests/cases/standalone/common/subquery/table.sql @@ -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