Skip to content

Commit 04d3e5c

Browse files
committed
Out<NYql::TIssues>
1 parent 1f88488 commit 04d3e5c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

ydb/core/tx/datashard/ut_common/datashard_ut_common.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,11 +1098,7 @@ static ui64 RunSchemeTx(
10981098
runtime.Send(new IEventHandle(MakeTxProxyID(), sender, request.Release()), 0, viaActorSystem);
10991099
auto ev = runtime.GrabEdgeEventRethrow<TEvTxUserProxy::TEvProposeTransactionStatus>(sender);
11001100

1101-
for (auto i : ev->Get()->Record.GetIssues()) {
1102-
Cerr << "Issue: " << i.AsJSON() << Endl;
1103-
}
1104-
1105-
UNIT_ASSERT_VALUES_EQUAL(ev->Get()->Record.GetStatus(), expectedStatus);
1101+
UNIT_ASSERT_VALUES_EQUAL_C(ev->Get()->Record.GetStatus(), expectedStatus, "Status: " << ev->Get()->Record.GetStatus() << " Issues: " << ev->Get()->Record.GetIssues());
11061102

11071103
return ev->Get()->Record.GetTxId();
11081104
}
@@ -1895,7 +1891,7 @@ void UploadRows(TTestActorRuntime& runtime, const TString& tablePath, const TVec
18951891
runtime.Register(actor);
18961892

18971893
auto ev = runtime.GrabEdgeEventRethrow<TEvTxUserProxy::TEvUploadRowsResponse>(uploadSender);
1898-
UNIT_ASSERT_VALUES_EQUAL_C(ev->Get()->Status, Ydb::StatusIds::SUCCESS, "Status: " << ev->Get()->Status << " Issues: " << ev->Get()->Issues.ToOneLineString());
1894+
UNIT_ASSERT_VALUES_EQUAL_C(ev->Get()->Status, Ydb::StatusIds::SUCCESS, "Status: " << ev->Get()->Status << " Issues: " << ev->Get()->Issues);
18991895
}
19001896

19011897
void WaitTabletBecomesOffline(TServer::TPtr server, ui64 tabletId)

ydb/library/yql/public/issue/yql_issue.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,8 @@ template <>
298298
void Out<NYql::TIssue>(IOutputStream& out, const NYql::TIssue& error) {
299299
error.PrintTo(out);
300300
}
301+
302+
template <>
303+
void Out<NYql::TIssues>(IOutputStream& out, const NYql::TIssues& error) {
304+
error.PrintTo(out);
305+
}

0 commit comments

Comments
 (0)