| 167 | |
| 168 | namespace { |
| 169 | bool equalKeys( |
| 170 | const std::vector<column_index_t>& keys, |
| 171 | const RowVectorPtr& vector, |
| 172 | vector_size_t index, |
| 173 | vector_size_t otherIndex) { |
| 174 | for (auto key : keys) { |
| 175 | const auto& child = vector->childAt(key); |
| 176 | if (!child->equalValueAt(child.get(), index, otherIndex)) { |
| 177 | return false; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | return true; |
| 182 | } |
| 183 | } // namespace |
| 184 | |
| 185 | void GroupingSet::addInput(const RowVectorPtr& input, bool mayPushdown) { |