(start_value: i32, num_values: usize)
| 124 | } |
| 125 | |
| 126 | pub fn create_record_batch(start_value: i32, num_values: usize) -> RecordBatch { |
| 127 | let end_value = start_value + num_values as i32; |
| 128 | let a_vals: Vec<i32> = (start_value..end_value).collect(); |
| 129 | let b_vals: Vec<f64> = a_vals.iter().map(|v| *v as f64).collect(); |
| 130 | |
| 131 | record_batch!(("a", Int32, a_vals), ("b", Float64, b_vals)).unwrap() |
| 132 | } |
| 133 | |
| 134 | /// Here we only wish to create a simple table provider as an example. |
| 135 | /// We create an in-memory table and convert it to it's FFI counterpart. |
no test coverage detected
searching dependent graphs…