MCPcopy Create free account
hub / github.com/apache/datafusion / f64_batch

Function f64_batch

datafusion/core/tests/fuzz_cases/limit_fuzz.rs:253–259  ·  view source on GitHub ↗

Create a record batch with a single column of type `Float64` named "x"

(values: impl IntoIterator<Item = Option<f64>>)

Source from the content-addressed store, hash-verified

251
252/// Create a record batch with a single column of type `Float64` named "x"
253fn 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"
262fn string_batch<'a>(values: impl IntoIterator<Item = &'a Option<String>>) -> RecordBatch {

Callers 2

new_f64Method · 0.85
topk_valuesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…