◆ DistinctWindowedOptimizer()
| duckdb::DistinctWindowedOptimizer::DistinctWindowedOptimizer |
( |
ExpressionRewriter & | rewriter | ) |
|
|
explicit |
320717 root = make_uniq<ExpressionMatcher>();
320718 root->expr_class = ExpressionClass::BOUND_WINDOW;
320719}
ExpressionRewriter & rewriter
The expression rewriter this rule belongs to.
Definition duckdb.cpp:69564
unique_ptr< ExpressionMatcher > root
The expression matcher of the rule.
Definition duckdb.cpp:69566
◆ Apply() [1/2]
320722 {
320723 if (!wexpr.distinct) {
320724
320725 return nullptr;
320726 }
320727 if (!wexpr.aggregate) {
320728
320729 return nullptr;
320730 }
320731 if (wexpr.aggregate->GetDistinctDependent() == AggregateDistinctDependent::NOT_DISTINCT_DEPENDENT) {
320732
320733 wexpr.distinct = false;
320734 changes_made = true;
320735 return nullptr;
320736 }
320737 return nullptr;
320738}
◆ Apply() [2/2]
Implements duckdb::Rule.
320741 {
320742 auto &wexpr = bindings[0].get().Cast<BoundWindowExpression>();
320743 return Apply(
rewriter.context, wexpr, changes_made);
320744}
The documentation for this class was generated from the following file: