| 22 | } |
| 23 | |
| 24 | static std::vector<std::shared_ptr<NodeExpression>> getJoinNodes(const SubqueryGraph& subgraph, |
| 25 | const SubqueryGraph& otherSubgraph) { |
| 26 | DASSERT(&subgraph.queryGraph == &otherSubgraph.queryGraph); |
| 27 | std::vector<std::shared_ptr<NodeExpression>> joinNodes; |
| 28 | for (auto idx : subgraph.getNbrNodeIndices()) { |
| 29 | if (otherSubgraph.queryNodesSelector[idx]) { |
| 30 | joinNodes.push_back(subgraph.queryGraph.getQueryNode(idx)); |
| 31 | } |
| 32 | } |
| 33 | return joinNodes; |
| 34 | } |
| 35 | |
| 36 | static std::vector<common::idx_t> intersect(std::vector<common::idx_t> left, |
| 37 | std::vector<common::idx_t> right) { |
no test coverage detected