Execute query and return results as a Vec of RecordBatches
(ctx: &SessionContext, sql: &str)
| 129 | |
| 130 | /// Execute query and return results as a Vec of RecordBatches |
| 131 | async fn execute_to_batches(ctx: &SessionContext, sql: &str) -> Vec<RecordBatch> { |
| 132 | let df = ctx.sql(sql).await.unwrap(); |
| 133 | |
| 134 | // optimize just for check schema don't change during optimization. |
| 135 | df.clone().into_optimized_plan().unwrap(); |
| 136 | |
| 137 | df.collect().await.unwrap() |
| 138 | } |
| 139 | |
| 140 | /// Execute query and return result set as 2-d table of Vecs |
| 141 | /// `result[row][column]` |
no test coverage detected
searching dependent graphs…