| 249 | } |
| 250 | |
| 251 | FactorizedTableSchema 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 | |
| 263 | std::unique_ptr<SemiMask> PlanMapper::createSemiMask(table_id_t tableID) const { |
| 264 | auto table = StorageManager::Get(*clientContext)->getTable(tableID)->ptrCast<NodeTable>(); |
nothing calls this directly
no test coverage detected