Create the smallest valid file scan config for builder validation tests.
()
| 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. |
searching dependent graphs…