Create schema with the specified number of columns
(column_prefix: &str, num_columns: usize)
| 60 | |
| 61 | /// Create schema with the specified number of columns |
| 62 | fn create_schema(column_prefix: &str, num_columns: usize) -> Schema { |
| 63 | let fields: Fields = (0..num_columns) |
| 64 | .map(|i| Field::new(format!("{column_prefix}{i}"), DataType::Int32, true)) |
| 65 | .collect(); |
| 66 | Schema::new(fields) |
| 67 | } |
| 68 | |
| 69 | fn create_table_provider(column_prefix: &str, num_columns: usize) -> Arc<MemTable> { |
| 70 | let schema = Arc::new(create_schema(column_prefix, num_columns)); |
no test coverage detected
searching dependent graphs…