async fn exec_sql(ctx: &mut ExecutionContext, sql: &str) -> Result<String> {
    let df = ctx.sql(sql)?;
    let batches = df.collect().await?;
    pretty_format_batches(&batches).map_err(DataFusionError::ArrowError)
}
/// Execute the specified sql and return the resulting record batches
/// pretty printed as a String.
Execute the specified sql and return the resulting record batches
pretty printed as a String.
Execute the specified sql and return the resulting record batches pretty printed as a String .
async fn exec_sql(ctx: &mut ExecutionContext, sql: &str) -> Result<String> {
    let df = ctx.sql(sql)?;
    let batches = df.collect().await?;
    pretty_format_batches(&batches).map_err(DataFusionError::ArrowError)
}
async fn exec_sql ( ctx : & mut ExecutionContext , sql : & str ) -> Result < String > { let df = ctx . sql ( sql ) ? ; let batches = df . collect ( ) . await ? ; pretty_format_batches ( & batches ) . map_err ( DataFusionError :: ArrowError ) }
Execute the specified sql and return the resulting record batches
pretty printed as a String.
Execute the specified sql and return the resulting record batches pretty printed as a String .
ctx
&mut ExecutionContext
sql
&str
ctx
&mut ExecutionContext
sql
&str