Skip to content

Commit 1ee0489

Browse files
authored
darwin build has been fixed (worload manager ut) (#14563)
1 parent c9c0fb4 commit 1ee0489

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

ydb/core/kqp/workload_service/ut/kqp_workload_service_ut.cpp

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -920,20 +920,20 @@ Y_UNIT_TEST_SUITE(ResourcePoolClassifiersDdl) {
920920
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
921921

922922
auto name = resultSet.ColumnParser("Name").GetOptionalUtf8();
923-
UNIT_ASSERT_VALUES_EQUAL(name, "a_first_classifier");
923+
UNIT_ASSERT_VALUES_EQUAL(*name, "a_first_classifier");
924924
auto rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
925-
UNIT_ASSERT_VALUES_EQUAL(rank, 1);
925+
UNIT_ASSERT_VALUES_EQUAL(*rank, 1);
926926
auto config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
927-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"staff@builtin","resource_pool":"my_pool"})");
927+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"staff@builtin","resource_pool":"my_pool"})");
928928

929929
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
930930

931931
name = resultSet.ColumnParser("Name").GetOptionalUtf8();
932-
UNIT_ASSERT_VALUES_EQUAL(name, "b_second_classifier");
932+
UNIT_ASSERT_VALUES_EQUAL(*name, "b_second_classifier");
933933
rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
934-
UNIT_ASSERT_VALUES_EQUAL(rank, 2);
934+
UNIT_ASSERT_VALUES_EQUAL(*rank, 2);
935935
config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
936-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"boss@builtin","resource_pool":"default"})");
936+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"boss@builtin","resource_pool":"default"})");
937937

938938
UNIT_ASSERT_C(!resultSet.TryNextRow(), "Unexpected row count");
939939
}
@@ -948,20 +948,20 @@ Y_UNIT_TEST_SUITE(ResourcePoolClassifiersDdl) {
948948
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
949949

950950
auto name = resultSet.ColumnParser("Name").GetOptionalUtf8();
951-
UNIT_ASSERT_VALUES_EQUAL(name, "a_first_classifier_shared");
951+
UNIT_ASSERT_VALUES_EQUAL(*name, "a_first_classifier_shared");
952952
auto rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
953-
UNIT_ASSERT_VALUES_EQUAL(rank, 1);
953+
UNIT_ASSERT_VALUES_EQUAL(*rank, 1);
954954
auto config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
955-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"staff@builtin","resource_pool":"my_pool"})");
955+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"staff@builtin","resource_pool":"my_pool"})");
956956

957957
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
958958

959959
name = resultSet.ColumnParser("Name").GetOptionalUtf8();
960-
UNIT_ASSERT_VALUES_EQUAL(name, "b_second_classifier_shared");
960+
UNIT_ASSERT_VALUES_EQUAL(*name, "b_second_classifier_shared");
961961
rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
962-
UNIT_ASSERT_VALUES_EQUAL(rank, 2);
962+
UNIT_ASSERT_VALUES_EQUAL(*rank, 2);
963963
config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
964-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"boss@builtin","resource_pool":"default"})");
964+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"boss@builtin","resource_pool":"default"})");
965965

966966
UNIT_ASSERT_C(!resultSet.TryNextRow(), "Unexpected row count");
967967
}
@@ -1012,29 +1012,29 @@ Y_UNIT_TEST_SUITE(ResourcePoolClassifiersDdl) {
10121012
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
10131013

10141014
auto name = resultSet.ColumnParser("Name").GetOptionalUtf8();
1015-
UNIT_ASSERT_VALUES_EQUAL(name, "a");
1015+
UNIT_ASSERT_VALUES_EQUAL(*name, "a");
10161016
auto rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
1017-
UNIT_ASSERT_VALUES_EQUAL(rank, 1);
1017+
UNIT_ASSERT_VALUES_EQUAL(*rank, 1);
10181018
auto config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
1019-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"staff@builtin","resource_pool":"my_pool"})");
1019+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"staff@builtin","resource_pool":"my_pool"})");
10201020

10211021
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
10221022

10231023
name = resultSet.ColumnParser("Name").GetOptionalUtf8();
1024-
UNIT_ASSERT_VALUES_EQUAL(name, "b");
1024+
UNIT_ASSERT_VALUES_EQUAL(*name, "b");
10251025
rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
1026-
UNIT_ASSERT_VALUES_EQUAL(rank, 2);
1026+
UNIT_ASSERT_VALUES_EQUAL(*rank, 2);
10271027
config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
1028-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"boss@builtin","resource_pool":"default"})");
1028+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"boss@builtin","resource_pool":"default"})");
10291029

10301030
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
10311031

10321032
name = resultSet.ColumnParser("Name").GetOptionalUtf8();
1033-
UNIT_ASSERT_VALUES_EQUAL(name, "c");
1033+
UNIT_ASSERT_VALUES_EQUAL(*name, "c");
10341034
rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
1035-
UNIT_ASSERT_VALUES_EQUAL(rank, 3);
1035+
UNIT_ASSERT_VALUES_EQUAL(*rank, 3);
10361036
config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
1037-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"super_boss@builtin","resource_pool":"default"})");
1037+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"super_boss@builtin","resource_pool":"default"})");
10381038

10391039
UNIT_ASSERT_C(!resultSet.TryNextRow(), "Unexpected row count");
10401040
}
@@ -1049,30 +1049,30 @@ Y_UNIT_TEST_SUITE(ResourcePoolClassifiersDdl) {
10491049
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
10501050

10511051
auto name = resultSet.ColumnParser("Name").GetOptionalUtf8();
1052-
UNIT_ASSERT_VALUES_EQUAL(name, "c");
1052+
UNIT_ASSERT_VALUES_EQUAL(*name, "c");
10531053
auto rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
1054-
UNIT_ASSERT_VALUES_EQUAL(rank, 3);
1054+
UNIT_ASSERT_VALUES_EQUAL(*rank, 3);
10551055
auto config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
1056-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"super_boss@builtin","resource_pool":"default"})");
1056+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"super_boss@builtin","resource_pool":"default"})");
10571057

10581058
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
10591059

10601060
name = resultSet.ColumnParser("Name").GetOptionalUtf8();
1061-
UNIT_ASSERT_VALUES_EQUAL(name, "b");
1061+
UNIT_ASSERT_VALUES_EQUAL(*name, "b");
10621062
rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
1063-
UNIT_ASSERT_VALUES_EQUAL(rank, 2);
1063+
UNIT_ASSERT_VALUES_EQUAL(*rank, 2);
10641064
config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
1065-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"boss@builtin","resource_pool":"default"})");
1065+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"boss@builtin","resource_pool":"default"})");
10661066

10671067

10681068
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
10691069

10701070
name = resultSet.ColumnParser("Name").GetOptionalUtf8();
1071-
UNIT_ASSERT_VALUES_EQUAL(name, "a");
1071+
UNIT_ASSERT_VALUES_EQUAL(*name, "a");
10721072
rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
1073-
UNIT_ASSERT_VALUES_EQUAL(rank, 1);
1073+
UNIT_ASSERT_VALUES_EQUAL(*rank, 1);
10741074
config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
1075-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"staff@builtin","resource_pool":"my_pool"})");
1075+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"staff@builtin","resource_pool":"my_pool"})");
10761076

10771077
UNIT_ASSERT_C(!resultSet.TryNextRow(), "Unexpected row count");
10781078
}
@@ -1087,11 +1087,11 @@ Y_UNIT_TEST_SUITE(ResourcePoolClassifiersDdl) {
10871087
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
10881088

10891089
auto name = resultSet.ColumnParser("Name").GetOptionalUtf8();
1090-
UNIT_ASSERT_VALUES_EQUAL(name, "a");
1090+
UNIT_ASSERT_VALUES_EQUAL(*name, "a");
10911091
auto rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
1092-
UNIT_ASSERT_VALUES_EQUAL(rank, 1);
1092+
UNIT_ASSERT_VALUES_EQUAL(*rank, 1);
10931093
auto config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
1094-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"staff@builtin","resource_pool":"my_pool"})");
1094+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"staff@builtin","resource_pool":"my_pool"})");
10951095

10961096
UNIT_ASSERT_C(!resultSet.TryNextRow(), "Unexpected row count");
10971097
}
@@ -1106,11 +1106,11 @@ Y_UNIT_TEST_SUITE(ResourcePoolClassifiersDdl) {
11061106
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
11071107

11081108
auto name = resultSet.ColumnParser("Name").GetOptionalUtf8();
1109-
UNIT_ASSERT_VALUES_EQUAL(name, "b");
1109+
UNIT_ASSERT_VALUES_EQUAL(*name, "b");
11101110
auto rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
1111-
UNIT_ASSERT_VALUES_EQUAL(rank, 2);
1111+
UNIT_ASSERT_VALUES_EQUAL(*rank, 2);
11121112
auto config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
1113-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"boss@builtin","resource_pool":"default"})");
1113+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"boss@builtin","resource_pool":"default"})");
11141114

11151115
UNIT_ASSERT_C(!resultSet.TryNextRow(), "Unexpected row count");
11161116
}
@@ -1125,11 +1125,11 @@ Y_UNIT_TEST_SUITE(ResourcePoolClassifiersDdl) {
11251125
UNIT_ASSERT_C(resultSet.TryNextRow(), "Unexpected row count");
11261126

11271127
auto name = resultSet.ColumnParser("Name").GetOptionalUtf8();
1128-
UNIT_ASSERT_VALUES_EQUAL(name, "c");
1128+
UNIT_ASSERT_VALUES_EQUAL(*name, "c");
11291129
auto rank = resultSet.ColumnParser("Rank").GetOptionalInt64();
1130-
UNIT_ASSERT_VALUES_EQUAL(rank, 3);
1130+
UNIT_ASSERT_VALUES_EQUAL(*rank, 3);
11311131
auto config = resultSet.ColumnParser("Config").GetOptionalJsonDocument();
1132-
UNIT_ASSERT_VALUES_EQUAL(config, R"({"member_name":"super_boss@builtin","resource_pool":"default"})");
1132+
UNIT_ASSERT_VALUES_EQUAL(*config, R"({"member_name":"super_boss@builtin","resource_pool":"default"})");
11331133

11341134
UNIT_ASSERT_C(!resultSet.TryNextRow(), "Unexpected row count");
11351135
}

0 commit comments

Comments
 (0)