MCPcopy Create free account
hub / github.com/bytedance/bolt / equalKeys

Function equalKeys

bolt/exec/GroupingSet.cpp:169–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168namespace {
169bool 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
185void GroupingSet::addInput(const RowVectorPtr& input, bool mayPushdown) {

Callers 2

addInputMethod · 0.70
hasUniqueKeysMethod · 0.50

Calls 3

childAtMethod · 0.80
equalValueAtMethod · 0.80
getMethod · 0.45

Tested by 1

hasUniqueKeysMethod · 0.40