Execute SQL and return results
(
sql: &str,
partition_count: usize,
)
| 145 | |
| 146 | /// Execute SQL and return results |
| 147 | async fn execute_with_partition( |
| 148 | sql: &str, |
| 149 | partition_count: usize, |
| 150 | ) -> Result<Vec<RecordBatch>> { |
| 151 | let tmp_dir = TempDir::new()?; |
| 152 | let ctx = create_ctx_with_partition(&tmp_dir, partition_count).await?; |
| 153 | plan_and_collect(&ctx, sql).await |
| 154 | } |
| 155 | |
| 156 | /// Generate a partitioned CSV file and register it with an execution context |
| 157 | async fn create_ctx_with_partition( |
no test coverage detected
searching dependent graphs…