You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: select.rs
    path of file: ./repos/incubator-horaedb/src/interpreters/src
    
    the code of the file until where you have to start completion: // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements.  See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership.  The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License.  You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.  See the License
    
    async fn execute(self: Box<Self>) -> InterpreterResult<Output> {
        let request_id = self.ctx.request_id();
        let plan = self.plan;
        let priority = match plan
            .decide_query_priority(PriorityContext {
                time_range_threshold: self.ctx.expensive_query_threshold(),
            })
            .box_err()
            .with_context(|| ExecutePlan {
                msg: format!("decide query priority failed, id:{request_id}"),
            })
            .context(Select)?
        {
            Some(v) => v,
            None => {
                debug!(
                    "Query has invalid query range, return empty result directly, id:{request_id}, plan:{plan:?}"
                );
                return Ok(Output::Records(Vec::new()));
            }
        };

        ENGINE_QUERY_COUNTER
            .with_label_values(&[priority.as_str()])
            .inc();

        let query_ctx = self
            .ctx
            .new_query_context(priority)
            .context(CreateQueryContext)
            .context(Select)?;

        debug!(
            "Interpreter execute select begin, request_id:{request_id}, plan:{plan:?}, priority:{priority:?}"
        );

        // Create physical plan.
        let physical_plan = self
            .physical_planner
            .plan(&query_ctx, plan)
            .await
            .box_err()
            .context(ExecutePlan {
                msg: "failed to build physical plan",
            })
            .context(Select)?;

        if matches!(priority, Priority::Low) {
            let executor = self.executor;
            return self
                .query_runtime
                .spawn_with_priority(
                    async move {
                        execute_and_collect(query_ctx, executor, physical_plan)
                            .await
                            .context(Select)
                    },
                    Priority::Low,
                )
                .await
                .context(Spawn)
                .context(Select)?;
        }

        execute_and_collect(query_ctx, self.executor, physical_plan)
            .await
            .context(Select)
    }