aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordcherednik <dcherednik@ydb.tech>2023-10-26 16:15:58 +0300
committerdcherednik <dcherednik@ydb.tech>2023-10-26 16:38:28 +0300
commit5c188593eabbfdb75cd02f19baf1e2cea0b32d4b (patch)
treeadbdaf1c7311b2c0f76e939a59992dad64f5abeb
parentc7b9cb23b80f2d740f8200e0a4847490b0b73d50 (diff)
downloadydb-5c188593eabbfdb75cd02f19baf1e2cea0b32d4b.tar.gz
Fix MvccTestOutOfOrderRestartLocksSingleWithoutBarrier
UNION ALL does not guarantee sorted result without ORDER BY
-rw-r--r--ydb/core/tx/datashard/datashard_ut_order.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ydb/core/tx/datashard/datashard_ut_order.cpp b/ydb/core/tx/datashard/datashard_ut_order.cpp
index 2eb70c8bb2..53a3efb99b 100644
--- a/ydb/core/tx/datashard/datashard_ut_order.cpp
+++ b/ydb/core/tx/datashard/datashard_ut_order.cpp
@@ -1895,7 +1895,8 @@ Y_UNIT_TEST(MvccTestOutOfOrderRestartLocksSingleWithoutBarrier) {
auto result = KqpSimpleBegin(runtime, sessionId, txId, Q_(R"(
SELECT * FROM `/Root/table-1` WHERE key = 1
UNION ALL
- SELECT * FROM `/Root/table-2` WHERE key = 2)"));
+ SELECT * FROM `/Root/table-2` WHERE key = 2
+ ORDER BY key)"));
UNIT_ASSERT_VALUES_EQUAL(
result,
"{ items { uint32_value: 1 } items { uint32_value: 1 } }, "