def METHOD_NAME(
    self, query: LogicalQuery, query_settings: QuerySettings
) -> ClickhouseQueryPlan:
    plans = self.build_and_rank_plans(query, query_settings)
    assert plans, "Query planner did not produce a plan"
    return plans[0]