aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgvit <gvit@ydb.tech>2023-07-17 11:33:46 +0300
committergvit <gvit@ydb.tech>2023-07-17 11:33:46 +0300
commite35773bee422606cdda1417f88debe0b19de78bf (patch)
tree824bf292ab08bafadb103d1e3157843533319b57
parent9cdf0064f0438ac4c9eb64bcfc707101df43c7ca (diff)
downloadydb-e35773bee422606cdda1417f88debe0b19de78bf.tar.gz
return precondition failed in case of task runner exception KIKIMR-18745
-rw-r--r--ydb/core/kqp/executer_actor/kqp_literal_executer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ydb/core/kqp/executer_actor/kqp_literal_executer.cpp b/ydb/core/kqp/executer_actor/kqp_literal_executer.cpp
index d154b774fe..2ada01f805 100644
--- a/ydb/core/kqp/executer_actor/kqp_literal_executer.cpp
+++ b/ydb/core/kqp/executer_actor/kqp_literal_executer.cpp
@@ -108,7 +108,8 @@ public:
} catch (...) {
auto msg = CurrentExceptionMessage();
LOG_C("TKqpLiteralExecuter, unexpected exception caught: " << msg);
- InternalError(TStringBuilder() << "Unexpected exception: " << msg);
+ CreateErrorResponse(Ydb::StatusIds::PRECONDITION_FAILED,
+ YqlIssue({}, TIssuesIds::KIKIMR_PRECONDITION_FAILED, msg));
}
return std::move(ResponseEv);