File tree 3 files changed +8
-17
lines changed
3 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -267,20 +267,12 @@ void TPreparedQueryHolder::FillTables(const google::protobuf::RepeatedPtrField<
267
267
}
268
268
}
269
269
}
270
-
270
+
271
271
void TPreparedQueryHolder::FillViews (const TVector<NKikimrKqp::TKqpTableMetadataProto>& viewsMetadata) {
272
272
for (const auto & view : viewsMetadata) {
273
273
const auto & pathId = view.GetPathId ();
274
274
const auto schemaVersion = view.GetSchemaVersion ();
275
- const auto & tableName = view.GetName ();
276
-
277
- NKqpProto::TKqpTableInfo tableInfo;
278
- tableInfo.MutableTableId ()->SetOwnerId (pathId.GetOwnerId ());
279
- tableInfo.MutableTableId ()->SetTableId (pathId.GetTableId ());
280
- tableInfo.SetSchemaVersion (schemaVersion);
281
- tableInfo.SetTableName (tableName);
282
-
283
- QueryViews.emplace_back (std::move (tableInfo));
275
+ QueryViews.emplace_back (pathId.GetOwnerId (), pathId.GetTableId (), schemaVersion);
284
276
}
285
277
}
286
278
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ class TPreparedQueryHolder {
137
137
std::shared_ptr<const NKikimrKqp::TPreparedQuery> Proto;
138
138
std::shared_ptr<TPreparedQueryAllocHolder> Alloc;
139
139
TVector<TString> QueryTables;
140
- TVector<NKqpProto::TKqpTableInfo > QueryViews;
140
+ TVector<TTableId > QueryViews;
141
141
std::vector<TKqpPhyTxHolder::TConstPtr> Transactions;
142
142
TIntrusivePtr<TTableConstInfoMap> TableConstInfoById;
143
143
@@ -181,7 +181,7 @@ class TPreparedQueryHolder {
181
181
return QueryTables;
182
182
}
183
183
184
- const TVector<NKqpProto::TKqpTableInfo >& GetQueryViews () const {
184
+ const TVector<TTableId >& GetQueryViews () const {
185
185
return QueryViews;
186
186
}
187
187
Original file line number Diff line number Diff line change @@ -205,13 +205,12 @@ class TKqpQueryState : public TNonCopyable {
205
205
TableVersions.emplace (tableId, table.GetVersion ());
206
206
}
207
207
};
208
- auto addView = [&](const NKqpProto::TKqpTableInfo& view) {
209
- NKikimr::TTableId tableId (view.GetTableId ().GetOwnerId (), view.GetTableId ().GetTableId ());
210
- auto it = TableVersions.find (tableId);
208
+ auto addView = [&](const TTableId& view) {
209
+ auto it = TableVersions.find (view);
211
210
if (it != TableVersions.end ()) {
212
- Y_ENSURE (it->second == view.GetSchemaVersion () );
211
+ Y_ENSURE (it->second == view.SchemaVersion );
213
212
} else {
214
- TableVersions.emplace (tableId , view.GetSchemaVersion () );
213
+ TableVersions.emplace (view , view.SchemaVersion );
215
214
}
216
215
};
217
216
You can’t perform that action at this time.
0 commit comments