@@ -3896,7 +3896,7 @@ Y_UNIT_TEST_SUITE(KqpQueryService) {
3896
3896
3897
3897
{
3898
3898
auto it = client.StreamExecuteQuery (R"sql(
3899
- SELECT * FROM `/Root/ColumnShard`;
3899
+ SELECT * FROM `/Root/ColumnShard` ORDER BY Col1 ;
3900
3900
)sql" , NYdb::NQuery::TTxControl::BeginTx ().CommitTx ()).ExtractValueSync ();
3901
3901
UNIT_ASSERT_VALUES_EQUAL_C (it.GetStatus (), EStatus::SUCCESS, it.GetIssues ().ToString ());
3902
3902
TString output = StreamResultToYson (it);
@@ -3909,7 +3909,8 @@ Y_UNIT_TEST_SUITE(KqpQueryService) {
3909
3909
auto it = client.StreamExecuteQuery (R"sql(
3910
3910
SELECT * FROM `/Root/DataShard`
3911
3911
UNION ALL
3912
- SELECT * FROM `/Root/ColumnShard`;
3912
+ SELECT * FROM `/Root/ColumnShard`
3913
+ ORDER BY Col1;
3913
3914
)sql" , NYdb::NQuery::TTxControl::BeginTx ().CommitTx ()).ExtractValueSync ();
3914
3915
UNIT_ASSERT_VALUES_EQUAL_C (it.GetStatus (), EStatus::SUCCESS, it.GetIssues ().ToString ());
3915
3916
TString output = StreamResultToYson (it);
@@ -3920,8 +3921,9 @@ Y_UNIT_TEST_SUITE(KqpQueryService) {
3920
3921
3921
3922
{
3922
3923
auto it = client.StreamExecuteQuery (R"sql(
3923
- SELECT r.Col3, c.Col3 FROM `/Root/DataShard` AS r
3924
- JOIN `/Root/ColumnShard` AS c ON r.Col1 + 1 = c.Col1;
3924
+ SELECT r.Col3 AS a, c.Col3 AS b FROM `/Root/DataShard` AS r
3925
+ JOIN `/Root/ColumnShard` AS c ON r.Col1 + 1 = c.Col1
3926
+ ORDER BY a;
3925
3927
)sql" , NYdb::NQuery::TTxControl::BeginTx ().CommitTx ()).ExtractValueSync ();
3926
3928
UNIT_ASSERT_VALUES_EQUAL_C (it.GetStatus (), EStatus::SUCCESS, it.GetIssues ().ToString ());
3927
3929
TString output = StreamResultToYson (it);
0 commit comments