Probe side is qualified if it is selective.
| 145 | |
| 146 | // Probe side is qualified if it is selective. |
| 147 | static bool isProbeSideQualified(LogicalOperator* probeRoot) { |
| 148 | if (probeRoot->getOperatorType() == LogicalOperatorType::ACCUMULATE) { |
| 149 | // No Acc hash join if probe side has already been accumulated. This can be solved. |
| 150 | return false; |
| 151 | } |
| 152 | // Probe side is not selective. So we don't apply acc hash join. |
| 153 | return subPlanContainsFilter(probeRoot); |
| 154 | } |
| 155 | |
| 156 | // Find all ScanNodeIDs under root which scans parameter nodeID. Note that there might be |
| 157 | // multiple ScanNodeIDs matches because both node and rel table scans will trigger scanNodeIDs. |
no test coverage detected