From 1364137a0901d35e33cad9e5f6044d78f4daee82 Mon Sep 17 00:00:00 2001 From: Grigoriy Pisarenko Date: Tue, 10 Dec 2024 09:09:33 +0000 Subject: [PATCH] Refactored TYQLConclusionStatusImpl --- ydb/library/conclusion/generic/status.h | 18 +++++++++--------- ydb/library/conclusion/status.h | 3 +++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/ydb/library/conclusion/generic/status.h b/ydb/library/conclusion/generic/status.h index fce80935726d..4701ade9e533 100644 --- a/ydb/library/conclusion/generic/status.h +++ b/ydb/library/conclusion/generic/status.h @@ -107,21 +107,21 @@ class TConclusionStatusImpl : public TConclusionStatusGenericImpl -class TConclusionStatusIssueImpl : public TConclusionStatusGenericImpl> { +class TYQLConclusionStatusImpl : public TConclusionStatusGenericImpl> { protected: - friend class TConclusionStatusGenericImpl>; + friend class TConclusionStatusGenericImpl>; - using TBase = TConclusionStatusGenericImpl>; + using TBase = TConclusionStatusGenericImpl>; using TBase::TBase; - TConclusionStatusIssueImpl() = default; + TYQLConclusionStatusImpl() = default; - TConclusionStatusIssueImpl(const TString& errorMessage, TStatus status = DefaultError) + TYQLConclusionStatusImpl(const TString& errorMessage, TStatus status = DefaultError) : TBase({NYql::TIssue(errorMessage)}, status) { } public: - TConclusionStatusIssueImpl& AddParentIssue(NYql::TIssue issue) { + TYQLConclusionStatusImpl& AddParentIssue(NYql::TIssue issue) { Y_ABORT_UNLESS(!!TBase::ErrorMessage); for (const auto& childIssue : *TBase::ErrorMessage) { issue.AddSubIssue(MakeIntrusive(childIssue)); @@ -130,18 +130,18 @@ class TConclusionStatusIssueImpl : public TConclusionStatusGenericImplAddIssue(std::move(issue)); return *this; } - TConclusionStatusIssueImpl& AddIssue(const TString& message) { + TYQLConclusionStatusImpl& AddIssue(const TString& message) { AddIssue(NYql::TIssue(message)); return *this; } diff --git a/ydb/library/conclusion/status.h b/ydb/library/conclusion/status.h index b6a0830cf7a6..d873ff01a4fa 100644 --- a/ydb/library/conclusion/status.h +++ b/ydb/library/conclusion/status.h @@ -8,4 +8,7 @@ using TConclusionStatus = TConclusionStatusImpl<::TNull, ::TNull{}, ::TNull{}>; template using TConclusionSpecialStatus = TConclusionStatusImpl; +template +using TYQLConclusionSpecialStatus = TYQLConclusionStatusImpl; + }