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: prom_query.rs
    path of file: ./repos/incubator-horaedb/src/proxy/src/grpc
    
    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 for the
// specific language governing permissions and limitations
// under the License.

use std::{
    collections::{BTreeMap, HashMap},
    sync::Arc,
    time::Instant,
};

use common_types::{
    datum::DatumKind,
    record_batch::RecordBatch,
    schema::{RecordSchema, TSID_COLUMN},
};
use generic_error::BoxError;
use horaedbproto::{
    common::ResponseHeader,
    prometheus::{Label, Sample, TimeSeries},
    storage::{PrometheusQueryRequest, PrometheusQueryResponse},
};
use http::StatusCode;
use interpreters::{interpreter::Output, RecordBatchVec};
use logger::info;
use query_frontend::{
    frontend::{Context as SqlContext, Error as FrontendError
    
    fn test_record_convert() {
        let schema = build_schema();
        let record_schema = schema.to_record_schema();
        let column_blocks = build_column_block();
        let record_batch = RecordBatch::new(record_schema, column_blocks, 4).unwrap();

        let column_name = ColumnNames {
            timestamp: "timestamp".to_string(),
            tag_keys: vec!["tag1".to_string(), "tag_dictionary".to_string()],
            field: "field1".to_string(),
        };
        let converter = RecordConverter::try_new(&column_name, &schema.to_record_schema()).unwrap();
        let mut tsid_to_tags = HashMap::new();
        let tsid_to_samples = converter.convert_to_samples(record_batch, &mut tsid_to_tags);

        assert_eq!(
            tsid_to_samples.get(&1).unwrap().clone(),
            vec![make_sample(1000001, 10.0), make_sample(1000002, 11.0)]
        );
        assert_eq!(
            tsid_to_samples.get(&2).unwrap().clone(),
            vec![make_sample(1000000, 10.0)]
        );
        assert_eq!(
            tsid_to_samples.get(&3).unwrap().clone(),
            vec![make_sample(1000000, 10.0)]
        );
        assert_eq!(
            tsid_to_tags.get(&1).unwrap().clone(),
            make_tags(vec![
                ("tag1".to_string(), "v5".to_string()),
                ("tag_dictionary".to_string(), "d1".to_string())
            ])
        );
        assert_eq!(
            tsid_to_tags.get(&2).unwrap().clone(),
            make_tags(vec![
                ("tag1".to_string(), "v4".to_string()),
                ("tag_dictionary".to_string(), "d2".to_string())
            ])
        );
        assert_eq!(
            tsid_to_tags.get(&3).unwrap().clone(),
            make_tags(vec![("tag1".to_string(), "v3".to_string())])
        );
    }