| 1290 | } |
| 1291 | |
| 1292 | bool allowParallelHashJoin( |
| 1293 | const std::vector<JoinAlgorithm> & join_algorithms, |
| 1294 | JoinKind kind, |
| 1295 | bool is_special_storage, |
| 1296 | bool one_disjunct) |
| 1297 | { |
| 1298 | if (std::ranges::none_of(join_algorithms, [](auto algo) { return algo == JoinAlgorithm::PARALLEL_HASH; })) |
| 1299 | return false; |
| 1300 | if (kind != JoinKind::Left && kind != JoinKind::Inner |
| 1301 | && kind != JoinKind::Right && kind != JoinKind::Full) |
| 1302 | return false; |
| 1303 | if (is_special_storage || !one_disjunct) |
| 1304 | return false; |
| 1305 | return true; |
| 1306 | } |
| 1307 | } |
no outgoing calls
no test coverage detected