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

Function builder_test_config

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

Create the smallest valid file scan config for builder validation tests.

()

Source from the content-addressed store, hash-verified

352
353 /// Create the smallest valid file scan config for builder validation tests.
354 fn builder_test_config() -> FileScanConfig {
355 let table_schema = TableSchema::new(Arc::new(Schema::empty()), vec![]);
356 FileScanConfigBuilder::new(
357 ObjectStoreUrl::parse("test:///").unwrap(),
358 Arc::new(MockSource::new(table_schema)),
359 )
360 .with_file(PartitionedFile::new("mock_file", 10))
361 .build()
362 }
363
364 /// Convenience helper to keep builder error assertions focused on the
365 /// specific missing or invalid input under test.

Calls 4

newFunction · 0.85
emptyFunction · 0.50
buildMethod · 0.45
with_fileMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…