Create a record batch with a single column of type `Float64` named "x"
(values: impl IntoIterator<Item = Option<f64>>)
| 251 | |
| 252 | /// Create a record batch with a single column of type `Float64` named "x" |
| 253 | fn f64_batch(values: impl IntoIterator<Item = Option<f64>>) -> RecordBatch { |
| 254 | RecordBatch::try_from_iter(vec![( |
| 255 | "x", |
| 256 | Arc::new(Float64Array::from_iter(values.into_iter())) as _, |
| 257 | )]) |
| 258 | .unwrap() |
| 259 | } |
| 260 | |
| 261 | /// Create a record batch with a single column of type `StringArray` named "x" |
| 262 | fn string_batch<'a>(values: impl IntoIterator<Item = &'a Option<String>>) -> RecordBatch { |
no outgoing calls
no test coverage detected
searching dependent graphs…