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

Function string_batch

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

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

(values: impl IntoIterator<Item = &'a Option<String>>)

Source from the content-addressed store, hash-verified

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 {
263 RecordBatch::try_from_iter(vec![(
264 "x",
265 Arc::new(StringArray::from_iter(values.into_iter())) as _,
266 )])
267 .unwrap()
268}
269
270/// Create a record batch with i64 column "x" and utf8 column "y"
271fn i64string_batch<'a>(

Callers 2

new_strMethod · 0.70
topk_valuesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…