pub fn optimize_query( context: &StatementPlanningContext<'_>, query: &QueryPlan, ) -> Result<QueryPlan, SQLError>