| 73 | } |
| 74 | |
| 75 | static bool haveSameTableIDs(const std::vector<LogicalOperator*>& ops, |
| 76 | SemiMaskTargetType targetType) { |
| 77 | std::unordered_set<table_id_t> tableIDSet; |
| 78 | for (auto id : getTableIDs(ops[0], targetType)) { |
| 79 | tableIDSet.insert(id); |
| 80 | } |
| 81 | for (auto i = 0u; i < ops.size(); ++i) { |
| 82 | if (!sameTableIDs(tableIDSet, getTableIDs(ops[i], targetType))) { |
| 83 | return false; |
| 84 | } |
| 85 | } |
| 86 | return true; |
| 87 | } |
| 88 | |
| 89 | static bool haveSameType(const std::vector<LogicalOperator*>& ops) { |
| 90 | for (auto i = 0u; i < ops.size(); ++i) { |
no test coverage detected