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: queries.rs
    path of file: ./repos/cnosdb/query_server/query/src/metadata/information_schema_provider/builder
    
    the code of the file until where you have to start completion: use std::sync::Arc;

use datafusion::arrow::array::{Float64Builder, StringBuilder, UInt64Builder};
use datafusion::arrow::datatypes::{DataType, Field, Schema, SchemaRef};
use datafusion::arrow::record_batch::RecordBatch;
use datafusion::error::DataFusionError;
use lazy_static::lazy_static;

lazy_static! {
    pub static ref QUERY_SCHEMA: SchemaRef = Arc::new(Schema::new(vec![
        Field::new("query_id", DataType::Utf8, false),
        Field::new("query_type", DataType::Utf8, false),
        Field::new("query_text", DataType::Utf8, false),
        Field::new("user_id", DataType::Utf8, false),
        Field::new("user_name", DataType::Utf8, false),
        Field::new("tenant_id", DataType::Utf8, false),
        Field::new("tenant_name", DataType::Utf8, false),
        Field::new("state", DataType::Utf8, false),
        Field::new("duration", DataType::Float64, false),
        Field::new("processed_count", DataType::UI
    
    fn try_from(value: InformationSchemaQueriesBuilder) -> Result<Self, Self::Error> {
        let InformationSchemaQueriesBuilder {
            mut query_ids,
            mut query_types,
            mut query_texts,
            mut user_ids,
            mut user_names,
            mut tenant_ids,
            mut tenant_names,
            mut states,
            mut durations,
            mut processed_counts,
            mut error_counts,
        } = value;

        let batch = RecordBatch::try_new(
            QUERY_SCHEMA.clone(),
            vec![
                Arc::new(query_ids.finish()),
                Arc::new(query_types.finish()),
                Arc::new(query_texts.finish()),
                Arc::new(user_ids.finish()),
                Arc::new(user_names.finish()),
                Arc::new(tenant_ids.finish()),
                Arc::new(tenant_names.finish()),
                Arc::new(states.finish()),
                Arc::new(durations.finish()),
                Arc::new(processed_counts.finish()),
                Arc::new(error_counts.finish()),
            ],
        )?;

        Ok(batch)
    }