Converts the results into a 2d array of strings, `result[row][column]` Special cases nulls to NULL for testing
(results: &[RecordBatch])
| 220 | /// Converts the results into a 2d array of strings, `result[row][column]` |
| 221 | /// Special cases nulls to NULL for testing |
| 222 | fn result_vec(results: &[RecordBatch]) -> Vec<Vec<String>> { |
| 223 | let mut result = vec![]; |
| 224 | for batch in results { |
| 225 | for row_index in 0..batch.num_rows() { |
| 226 | let row_vec = batch |
| 227 | .columns() |
| 228 | .iter() |
| 229 | .map(|column| col_str(column, row_index)) |
| 230 | .collect(); |
| 231 | result.push(row_vec); |
| 232 | } |
| 233 | } |
| 234 | result |
| 235 | } |
| 236 | |
| 237 | async fn register_alltypes_parquet(ctx: &SessionContext) { |
| 238 | let testdata = test_util::parquet_test_data(); |
no test coverage detected
searching dependent graphs…