We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02df54f commit e811371Copy full SHA for e811371
ydb/core/kqp/provider/yql_kikimr_datasource.cpp
@@ -352,10 +352,11 @@ class TKiSourceLoadTableMetadataTransformer : public TGraphTransformerBase {
352
return TStatus::Error;
353
}
354
355
- if (res.Metadata->Kind == EKikimrTableKind::View) {
+ if (const auto& preparingQuery = SessionCtx->Query().PreparingQuery;
356
+ preparingQuery
357
+ && res.Metadata->Kind == EKikimrTableKind::View
358
+ ) {
359
const auto& viewMetadata = *res.Metadata;
- const auto& preparingQuery = SessionCtx->Query().PreparingQuery;
- YQL_ENSURE(preparingQuery);
360
auto* viewInfo = preparingQuery->MutablePhysicalQuery()->MutableViewsInfo()->Add();
361
auto* pathId = viewInfo->MutableTableId();
362
pathId->SetOwnerId(viewMetadata.PathId.OwnerId());
0 commit comments