From ea7bd233582499e7cffe287783572d4d0393155a Mon Sep 17 00:00:00 2001 From: stanislav_shchetinin Date: Thu, 29 Aug 2024 23:55:21 +0300 Subject: [PATCH] $$$[KQP] Status processing added$$$ (#8502) --- ydb/core/kqp/gateway/actors/analyze_actor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ydb/core/kqp/gateway/actors/analyze_actor.cpp b/ydb/core/kqp/gateway/actors/analyze_actor.cpp index e9384a78e8ba..326d39a44002 100644 --- a/ydb/core/kqp/gateway/actors/analyze_actor.cpp +++ b/ydb/core/kqp/gateway/actors/analyze_actor.cpp @@ -46,6 +46,12 @@ void TAnalyzeActor::Handle(NStat::TEvStatistics::TEvAnalyzeResponse::TPtr& ev, c const auto& record = ev->Get()->Record; const TString operationId = record.GetOperationId(); + const auto status = record.GetStatus(); + + if (status != NKikimrStat::TEvAnalyzeResponse::STATUS_SUCCESS) { + ALOG_CRIT(NKikimrServices::KQP_GATEWAY, + "TAnalyzeActor, TEvAnalyzeResponse has status=" << status); + } if (operationId != OperationId) { ALOG_CRIT(NKikimrServices::KQP_GATEWAY,