| 141 | } |
| 142 | |
| 143 | bool 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 | |
| 159 | bool restorePrewhereInputs(FilterDAGInfo * row_level_filter, PrewhereInfo * info, const NameSet & inputs) |
| 160 | { |
no test coverage detected