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

Method mapCopyFrom

src/processor/map/map_copy_from.cpp:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace processor {
27
28std::unique_ptr<PhysicalOperator> PlanMapper::mapCopyFrom(const LogicalOperator* logicalOperator) {
29 const auto& copyFrom = logicalOperator->constCast<LogicalCopyFrom>();
30 WarningContext::Get(*clientContext)
31 ->setIgnoreErrorsForCurrentQuery(copyFrom.getInfo()->getIgnoreErrorsOption());
32 switch (copyFrom.getInfo()->tableType) {
33 case TableType::NODE: {
34 return mapCopyNodeFrom(logicalOperator);
35 }
36 case TableType::REL: {
37 return mapCopyRelFrom(logicalOperator);
38 }
39 default:
40 UNREACHABLE_CODE;
41 }
42}
43
44std::unique_ptr<PhysicalOperator> PlanMapper::mapCopyNodeFrom(
45 const LogicalOperator* logicalOperator) {

Callers

nothing calls this directly

Calls 3

getIgnoreErrorsOptionMethod · 0.45
getInfoMethod · 0.45

Tested by

no test coverage detected