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

Function dict_batches

datafusion/core/tests/memory_limit/mod.rs:1059–1062  ·  view source on GitHub ↗

Returns 5 sorted string dictionary batches each with 50 rows with this schema. a: Dictionary , b: Dictionary ,

()

Source from the content-addressed store, hash-verified

1057/// a: Dictionary<Utf8, Int32>,
1058/// b: Dictionary<Utf8, Int32>,
1059fn dict_batches() -> Vec<RecordBatch> {
1060 static DICT_BATCHES: LazyLock<Vec<RecordBatch>> = LazyLock::new(make_dict_batches);
1061 DICT_BATCHES.clone()
1062}
1063
1064fn make_dict_batches() -> Vec<RecordBatch> {
1065 let batch_size = 50;

Callers 2

partition_sizeMethod · 0.85
tableMethod · 0.85

Calls 2

newFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…