320047
320048 auto add_matcher = make_uniq<FunctionExpressionMatcher>();
320049 add_matcher->function = make_uniq<SpecificFunctionMatcher>("+");
320050 add_matcher->type = make_uniq<IntegerTypeMatcher>();
320051 auto left_expression_matcher = make_uniq<ExpressionMatcher>();
320052 auto right_expression_matcher = make_uniq<ExpressionMatcher>();
320053 left_expression_matcher->type = make_uniq<IntegerTypeMatcher>();
320054 right_expression_matcher->type = make_uniq<IntegerTypeMatcher>();
320055 add_matcher->matchers.push_back(std::move(left_expression_matcher));
320056 add_matcher->matchers.push_back(std::move(right_expression_matcher));
320058
320059 auto multiply_matcher = make_uniq<FunctionExpressionMatcher>();
320060 multiply_matcher->function = make_uniq<SpecificFunctionMatcher>("*");
320061 multiply_matcher->type = make_uniq<IntegerTypeMatcher>();
320062 left_expression_matcher = make_uniq<ExpressionMatcher>();
320063 right_expression_matcher = make_uniq<ExpressionMatcher>();
320064 left_expression_matcher->type = make_uniq<IntegerTypeMatcher>();
320065 right_expression_matcher->type = make_uniq<IntegerTypeMatcher>();
320066 multiply_matcher->matchers.push_back(std::move(left_expression_matcher));
320067 multiply_matcher->matchers.push_back(std::move(right_expression_matcher));
320069
320070 vector<unique_ptr<FunctionExpressionMatcher>> func_matchers;
320071 func_matchers.push_back(std::move(add_matcher));
320072 func_matchers.push_back(std::move(multiply_matcher));
320073 auto op = make_uniq<RecursiveFunctionExpressionMatcher>(std::move(func_matchers));
320074 root = std::move(op);
320075}
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
@ ORDERED
All entries have to be matched, and the matches have to be ordered.
Definition duckdb.cpp:69121