MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / createFlatFTableSchema

Method createFlatFTableSchema

src/processor/map/plan_mapper.cpp:251–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251FactorizedTableSchema PlanMapper::createFlatFTableSchema(const expression_vector& expressions,
252 const Schema& schema) {
253 auto tableSchema = FactorizedTableSchema();
254 for (auto& expr : expressions) {
255 auto dataPos = getDataPos(*expr, schema);
256 auto columnSchema = ColumnSchema(false /* isUnFlat */, dataPos.dataChunkPos,
257 LogicalTypeUtils::getRowLayoutSize(expr->getDataType()));
258 tableSchema.appendColumn(std::move(columnSchema));
259 }
260 return tableSchema;
261}
262
263std::unique_ptr<SemiMask> PlanMapper::createSemiMask(table_id_t tableID) const {
264 auto table = StorageManager::Get(*clientContext)->getTable(tableID)->ptrCast<NodeTable>();

Callers

nothing calls this directly

Calls 3

ColumnSchemaClass · 0.85
getDataTypeMethod · 0.80
appendColumnMethod · 0.80

Tested by

no test coverage detected