@Override
  default PlanNode optimize(PlanNode plan, Context context) {
    return optimizeAndMarkPlanChanges(plan, context).plan();
  }
This optimizer is needed for adaptive optimization in FTE.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/optimizations/AdaptivePlanOptimizer.java