File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
ydb/core/kqp/session_actor Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1605,7 +1605,9 @@ class TKqpSessionActor : public TActorBootstrapped<TKqpSessionActor> {
1605
1605
auto stats = QueryState->QueryStats .ToProto ();
1606
1606
if (QueryState->GetStatsMode () >= Ydb::Table::QueryStatsCollection::STATS_COLLECTION_FULL) {
1607
1607
response->SetQueryPlan (SerializeAnalyzePlan (stats, QueryState->UserRequestContext ->PoolId ));
1608
- response->SetQueryAst (QueryState->CompileResult ->PreparedQuery ->GetPhysicalQuery ().GetQueryAst ());
1608
+ if (QueryState->CompileResult && QueryState->CompileResult ->PreparedQuery ) {
1609
+ response->SetQueryAst (QueryState->CompileResult ->PreparedQuery ->GetPhysicalQuery ().GetQueryAst ());
1610
+ }
1609
1611
}
1610
1612
response->MutableQueryStats ()->Swap (&stats);
1611
1613
}
You can’t perform that action at this time.
0 commit comments