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

Function create_and_collect

datafusion/datasource/src/file_stream/mod.rs:343–351  ·  view source on GitHub ↗

helper that creates a stream of 2 files with the same pair of batches in each ([0,1,2] and [0,1])

(limit: Option<usize>)

Source from the content-addressed store, hash-verified

341
342 /// helper that creates a stream of 2 files with the same pair of batches in each ([0,1,2] and [0,1])
343 async fn create_and_collect(limit: Option<usize>) -> Vec<RecordBatch> {
344 FileStreamTest::new()
345 .with_records(vec![make_partition(3), make_partition(2)])
346 .with_num_files(2)
347 .with_limit(limit)
348 .result()
349 .await
350 .expect("error executing stream")
351 }
352
353 /// Create the smallest valid file scan config for builder validation tests.
354 fn builder_test_config() -> FileScanConfig {

Callers 3

without_limitFunction · 0.85
with_limit_between_filesFunction · 0.85

Calls 5

newFunction · 0.85
resultMethod · 0.80
with_num_filesMethod · 0.80
with_recordsMethod · 0.80
with_limitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…