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

Method mapCreateType

src/processor/map/map_ddl.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46std::unique_ptr<PhysicalOperator> PlanMapper::mapCreateType(
47 const LogicalOperator* logicalOperator) {
48 auto& createType = logicalOperator->constCast<LogicalCreateType>();
49 auto typeName = createType.getExpressionsForPrinting();
50 auto printInfo =
51 std::make_unique<CreateTypePrintInfo>(typeName, createType.getType().toString());
52 auto messageTable = FactorizedTableUtils::getSingleStringColumnFTable(
53 storage::MemoryManager::Get(*clientContext));
54 return std::make_unique<CreateType>(typeName, createType.getType().copy(),
55 std::move(messageTable), getOperatorID(), std::move(printInfo));
56}
57
58std::unique_ptr<PhysicalOperator> PlanMapper::mapCreateSequence(
59 const LogicalOperator* logicalOperator) {

Callers

nothing calls this directly

Calls 5

getOperatorIDFunction · 0.85
toStringMethod · 0.45
getTypeMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected