Skip to content

Commit 6e1726c

Browse files
authored
yql_kikimr_datasource RewriteIO: avoid sigsegv on missing Metadata (backport 25-1 #26795) (#27404)
1 parent 21f4194 commit 6e1726c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ydb/core/kqp/provider/yql_kikimr_datasource.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@ class TKikimrDataSource : public TDataProviderBase {
710710
const TString tablePath = key.GetTablePath();
711711
auto& tableDesc = SessionCtx->Tables().GetTable(cluster, tablePath);
712712
if (key.GetKeyType() == TKikimrKey::Type::Table) {
713+
YQL_ENSURE(tableDesc.Metadata);
713714
if (tableDesc.Metadata->Kind == EKikimrTableKind::External) {
714715
if (tableDesc.Metadata->ExternalSource.SourceType == ESourceType::ExternalDataSource && tableDesc.Metadata->TableType == NYql::ETableType::Unknown) {
715716
ctx.AddError(TIssue(node->Pos(ctx),

0 commit comments

Comments
 (0)