diff --git a/dbcon/mysql/rbo_predicate_pushdown.cpp b/dbcon/mysql/rbo_predicate_pushdown.cpp index 23d8a8c90..d98eace65 100644 --- a/dbcon/mysql/rbo_predicate_pushdown.cpp +++ b/dbcon/mysql/rbo_predicate_pushdown.cpp @@ -31,14 +31,13 @@ namespace optimizer using DerivedToFiltersMap = std::map; -bool predicatePushdownFilter(execplan::CalpontSelectExecutionPlan& csep) +bool predicatePushdownFilter(execplan::CalpontSelectExecutionPlan& csep, optimizer::RBOptimizerContext& /*ctx*/) { // The original rule match contains questionable decision to filter out // queries that contains any UNION UNIT with only derived tables. // See ha_from_sub.cpp before MCS 23.10.7 for more details and @bug6156. // All tables are derived thus nothing to optimize. - return ! - csep.tableList().empty(); + return !csep.tableList().empty(); } diff --git a/dbcon/mysql/rbo_predicate_pushdown.h b/dbcon/mysql/rbo_predicate_pushdown.h index 80a1a70c3..d05617208 100644 --- a/dbcon/mysql/rbo_predicate_pushdown.h +++ b/dbcon/mysql/rbo_predicate_pushdown.h @@ -25,6 +25,6 @@ #include "rulebased_optimizer.h" namespace optimizer { - bool predicatePushdownFilter(execplan::CalpontSelectExecutionPlan& csep); + bool predicatePushdownFilter(execplan::CalpontSelectExecutionPlan& csep, optimizer::RBOptimizerContext& ctx); bool applyPredicatePushdown(execplan::CalpontSelectExecutionPlan& csep, optimizer::RBOptimizerContext& ctx); } \ No newline at end of file