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

Function restoreDAGInputs

src/Processors/QueryPlan/ReadFromMergeTree.cpp:143–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143bool restoreDAGInputs(ActionsDAG & dag, const NameSet & inputs)
144{
145 std::unordered_set<const ActionsDAG::Node *> outputs(dag.getOutputs().begin(), dag.getOutputs().end());
146 bool added = false;
147 for (const auto * input : dag.getInputs())
148 {
149 if (inputs.contains(input->result_name) && !outputs.contains(input))
150 {
151 dag.getOutputs().push_back(input);
152 added = true;
153 }
154 }
155
156 return added;
157}
158
159bool restorePrewhereInputs(FilterDAGInfo * row_level_filter, PrewhereInfo * info, const NameSet & inputs)
160{

Callers 2

restorePrewhereInputsFunction · 0.85
initializePipelineMethod · 0.85

Calls 4

beginMethod · 0.45
endMethod · 0.45
containsMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected