From 0e415cd4ef465d02e4ba28078e3b5689bd51aa7f Mon Sep 17 00:00:00 2001 From: Hor911 Date: Thu, 9 May 2024 02:56:12 +0300 Subject: [PATCH] Fix uninitialized mem access in msan UT (#4413) --- ydb/core/kqp/host/kqp_host.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ydb/core/kqp/host/kqp_host.cpp b/ydb/core/kqp/host/kqp_host.cpp index 49870a1554a8..566cbe1cc39d 100644 --- a/ydb/core/kqp/host/kqp_host.cpp +++ b/ydb/core/kqp/host/kqp_host.cpp @@ -1060,7 +1060,9 @@ class TKqpHost : public IKqpHost { SessionCtx->SetCluster(cluster); SessionCtx->SetTempTables(std::move(tempTablesState)); - ExternalSourceFactory = NExternalSource::CreateExternalSourceFactory({}, FederatedQuerySetup->S3GatewayConfig.GetGeneratorPathsLimit()); + if (FederatedQuerySetup) { + ExternalSourceFactory = NExternalSource::CreateExternalSourceFactory({}, FederatedQuerySetup->S3GatewayConfig.GetGeneratorPathsLimit()); + } } IAsyncQueryResultPtr ExecuteSchemeQuery(const TKqpQueryRef& query, bool isSql, const TExecSettings& settings) override {