Skip to content

Commit 0176b95

Browse files
committed
fix source
1 parent f076b23 commit 0176b95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ydb/core/kqp/gateway/kqp_metadata_loader.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,8 +1002,8 @@ NThreading::TFuture<TTableMetadataResult> TKqpTableMetadataLoader::LoadTableMeta
10021002
promise.SetValue(externalDataSourceMetadata);
10031003
}
10041004
};
1005-
auto& source = externalDataSourceMetadata.Metadata->ExternalSource;
1006-
if (source.Type == ToString(NYql::EDatabaseType::Ydb) && externalPath) {
1005+
if (externalDataSourceMetadata.Metadata->ExternalSource.Type == ToString(NYql::EDatabaseType::Ydb) && externalPath) {
1006+
auto& source = externalDataSourceMetadata.Metadata->ExternalSource;
10071007
THashMap<TString, TString> properties = {source.Properties.GetProperties().begin(), source.Properties.GetProperties().end()};
10081008

10091009
auto token = source.Token;
@@ -1023,10 +1023,10 @@ NThreading::TFuture<TTableMetadataResult> TKqpTableMetadataLoader::LoadTableMeta
10231023
useTls,
10241024
structuredTokenJson,
10251025
path)
1026-
.Subscribe([source, f = loadDynamicMetadata] (const NThreading::TFuture<TGetSchemeEntryResult>& result) mutable {
1026+
.Subscribe([externalDataSourceMetadata, f = loadDynamicMetadata] (const NThreading::TFuture<TGetSchemeEntryResult>& result) mutable {
10271027
TGetSchemeEntryResult type = result.GetValue();
10281028
if (type == NYdb::NScheme::ESchemeEntryType::Topic) {
1029-
source.Type = ToString(NKikimr::NExternalSource::YdbTopicsType);
1029+
externalDataSourceMetadata.Metadata->ExternalSource.Type = ToString(NKikimr::NExternalSource::YdbTopicsType);
10301030
}
10311031
f();
10321032
});

0 commit comments

Comments
 (0)