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

use async_trait::async_trait;
use meta::error::MetaError;
use models::schema::{TableSchema, TskvTableSchema};
use snafu::ResultExt;
use spi::query::execution::{Output, QueryStateMachineRef};
use spi::query::logical_planner::CreateTable;
use spi::{QueryError, Result};
    
async fn create_table(stmt: &CreateTable, machine: QueryStateMachineRef) -> Result<()> {
    let CreateTable { name, .. } = stmt;

    let client =
        machine
            .meta
            .tenant_meta(name.tenant())
            .await
            .ok_or(MetaError::TenantNotFound {
                tenant: name.tenant().to_string(),
            })?;

    let table_schema = build_schema(stmt);
    client
        .create_table(&TableSchema::TsKvTableSchema(Arc::new(table_schema)))
        .await
        .context(spi::MetaSnafu)
}