message: Aplying like rules to the optimizer.
diff: #include "duckdb/optimizer/rule/list.hpp"
  #include "duckdb/optimizer/topn_optimizer.hpp"
  #include "duckdb/planner/binder.hpp"
  -#include "duckdb/optimizer/like_optimizer.hpp"
  using namespace duckdb;
  using namespace std;
  @@ -28,6 +27,7 @@ Optimizer::Optimizer(Binder &binder, ClientContext &context) : context(context),
  rewriter.rules.push_back(make_unique<ComparisonSimplificationRule>(rewriter));
  rewriter.rules.push_back(make_unique<DatePartSimplificationRule>(rewriter));
  rewriter.rules.push_back(make_unique<MoveConstantsRule>(rewriter));
  + rewriter.rules.push_back(make_unique<LikeOptimizationRule>(rewriter));
  #ifdef DEBUG
  for (auto &rule : rewriter.rules) {
  @@ -66,11 +66,6 @@ unique_ptr<LogicalOperator> Optimizer::Optimize(unique_ptr<LogicalOperator> plan
  plan = rewriter.Rewrite(move(plan));
  context.profiler.EndPhase();
  - context.profiler.StartPhase("like");
  - LikeOptimizer like_op(*this);
  - plan = like_op.Rewrite(move(plan));
  - context.profiler.EndPhase();
  -
  // then we perform the join ordering optimization
  // this also rewrites cross products + filters into joins and performs filter pushdowns
  context.profiler.StartPhase("join_order");
  