◆ AggregateExpressionMatcher()
| duckdb::AggregateExpressionMatcher::AggregateExpressionMatcher |
( |
| ) |
|
|
inline |
69480 : ExpressionMatcher(ExpressionClass::BOUND_AGGREGATE) {
69481 }
◆ Match()
Checks if the given expression matches this ExpressionMatcher. If it does, the expression is appended to the bindings list and true is returned. Otherwise, false is returned.
Reimplemented from duckdb::ExpressionMatcher.
315212 {
315214 return false;
315215 }
315216 auto &expr = expr_p.Cast<BoundAggregateExpression>();
315217 if (!FunctionMatcher::Match(
function, expr.function.name)) {
315218 return false;
315219 }
315220
315221 if (expr.filter || expr.order_bys || expr.aggr_type != AggregateType::NON_DISTINCT) {
315222 return false;
315223 }
315224 if (!SetMatcher::Match(
matchers, expr.children, bindings,
policy)) {
315225 return false;
315226 }
315227 return true;
315228}
vector< unique_ptr< ExpressionMatcher > > matchers
The matchers for the child expressions.
Definition duckdb.cpp:69483
SetMatcher::Policy policy
The set matcher matching policy to use.
Definition duckdb.cpp:69485
unique_ptr< FunctionMatcher > function
The function name to match.
Definition duckdb.cpp:69487
virtual bool Match(Expression &expr, vector< reference< Expression > > &bindings)
Definition duckdb.cpp:315124
The documentation for this class was generated from the following file: