MCPcopy Create free account
hub / github.com/ByConity/ByConity / getSampleBlockNonMaterialized

Method getSampleBlockNonMaterialized

src/Storages/StorageInMemoryMetadata.cpp:377–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377Block StorageInMemoryMetadata::getSampleBlockNonMaterialized(bool include_func_columns) const
378{
379 Block res;
380
381 for (const auto & column : getColumns().getOrdinary())
382 res.insert({column.type->createColumn(), column.type, column.name});
383
384 if (include_func_columns)
385 {
386 for (const auto & column : getFuncColumns())
387 res.insert({column.type->createColumn(), column.type, column.name});
388 }
389
390 return res;
391}
392
393Block StorageInMemoryMetadata::getSampleBlockWithVirtuals(const NamesAndTypesList & virtuals) const
394{

Callers 10

writeMethod · 0.80
getHeaderMethod · 0.80
getHeaderMethod · 0.80
loadFromSnapshotMethod · 0.80
syncTableSchemaFunction · 0.80
getSampleBlockMethod · 0.80

Calls 3

getOrdinaryMethod · 0.80
insertMethod · 0.45
createColumnMethod · 0.45

Tested by

no test coverage detected