MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / clone

Method clone

src/Processors/QueryPlan/QueryPlan.cpp:1141–1151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1139}
1140
1141QueryPlan QueryPlan::clone() const
1142{
1143 QueryPlan result;
1144 result.nodes.emplace_back(Node{ .step = {}, .children = {} });
1145 auto * current_subplan_copy_root = &result.nodes.back();
1146
1147 result.cloneInplace(current_subplan_copy_root, root);
1148 result.root = current_subplan_copy_root;
1149
1150 return result;
1151}
1152
1153void QueryPlan::cloneSubplanAndReplace(Node * node_to_replace, Node * subplan_root, Nodes & nodes)
1154{

Callers 15

transformMethod · 0.45
transformMethod · 0.45
prepareGenerateMethod · 0.45
workMethod · 0.45
transformMethod · 0.45
setMethod · 0.45
joinMethod · 0.45
handleAllJoinStateMethod · 0.45
transformMethod · 0.45
TTLTransformMethod · 0.45
FillingTransformMethod · 0.45

Calls 3

cloneInplaceMethod · 0.80
emplace_backMethod · 0.45
backMethod · 0.45

Tested by 1

getSourceMethod · 0.36