◆ FindMatchingAggregate()
| duckdb::FindMatchingAggregate::FindMatchingAggregate |
( |
const aggr_ref_t & | aggr | ) |
|
|
inlineexplicit |
159757 : aggr_r(aggr) {
159758 }
◆ operator()()
| bool duckdb::FindMatchingAggregate::operator() |
( |
const aggr_ref_t | other_r | ) |
|
|
inline |
159759 {
159760 auto &other = other_r.get();
159761 auto &aggr = aggr_r.get();
159762 if (other.children.size() != aggr.children.size()) {
159763 return false;
159764 }
159766 return false;
159767 }
159768 for (
idx_t i = 0; i < aggr.children.size(); i++) {
159769 auto &other_child = other.children[i]->Cast<BoundReferenceExpression>();
159770 auto &aggr_child = aggr.children[i]->Cast<BoundReferenceExpression>();
159771 if (other_child.index != aggr_child.index) {
159772 return false;
159773 }
159774 }
159775 return true;
159776 }
bool Equals(const BaseExpression &other) const override
Returns true if this expression is equal to another expression.
Definition duckdb.hpp:17762
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
The documentation for this struct was generated from the following file: