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

Method mayPushdownAggregation

bolt/exec/Driver.cpp:990–1003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988}
989
990bool Driver::mayPushdownAggregation(Operator* aggregation) const {
991 for (auto i = 1; i < operators_.size(); ++i) {
992 auto op = operators_[i].get();
993 if (aggregation == op) {
994 return true;
995 }
996 if (!op->isFilter() || !op->preservesOrder()) {
997 return false;
998 }
999 }
1000 BOLT_FAIL(
1001 "Aggregation operator not found in its Driver: {}",
1002 aggregation->toString());
1003}
1004
1005std::unordered_set<column_index_t> Driver::canPushdownFilters(
1006 const Operator* filterSource,

Callers 1

addInputMethod · 0.80

Calls 5

sizeMethod · 0.45
getMethod · 0.45
isFilterMethod · 0.45
preservesOrderMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected