From 0d4e07eddd5dc05a7aabb6da974c65241d3e31af Mon Sep 17 00:00:00 2001 From: dennis zhuang Date: Thu, 11 Sep 2025 04:41:10 +0800 Subject: [PATCH] fix: unstable query sort results (#6944) Signed-off-by: Dennis Zhuang --- tests/cases/standalone/common/setops/basic_setops.result | 4 ++-- tests/cases/standalone/common/setops/basic_setops.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/cases/standalone/common/setops/basic_setops.result b/tests/cases/standalone/common/setops/basic_setops.result index 47a2bedcfe..a88fca2001 100644 --- a/tests/cases/standalone/common/setops/basic_setops.result +++ b/tests/cases/standalone/common/setops/basic_setops.result @@ -1,5 +1,5 @@ -- Migrated from DuckDB test: test/sql/setops/test_setops.test -SELECT 1 UNION ALL SELECT 2; +SELECT 1 UNION ALL SELECT 2 ORDER BY 1; +----------+ | Int64(1) | @@ -8,7 +8,7 @@ SELECT 1 UNION ALL SELECT 2; | 2 | +----------+ -SELECT 1, 'a' UNION ALL SELECT 2, 'b'; +SELECT 1, 'a' UNION ALL SELECT 2, 'b' ORDER BY 1; +----------+-----------+ | Int64(1) | Utf8("a") | diff --git a/tests/cases/standalone/common/setops/basic_setops.sql b/tests/cases/standalone/common/setops/basic_setops.sql index dca9e06c92..b0ade78c16 100644 --- a/tests/cases/standalone/common/setops/basic_setops.sql +++ b/tests/cases/standalone/common/setops/basic_setops.sql @@ -1,8 +1,8 @@ -- Migrated from DuckDB test: test/sql/setops/test_setops.test -SELECT 1 UNION ALL SELECT 2; +SELECT 1 UNION ALL SELECT 2 ORDER BY 1; -SELECT 1, 'a' UNION ALL SELECT 2, 'b'; +SELECT 1, 'a' UNION ALL SELECT 2, 'b' ORDER BY 1; SELECT 1, 'a' UNION ALL SELECT 2, 'b' UNION ALL SELECT 3, 'c' ORDER BY 1;