MCPcopy Create free account
hub / github.com/apache/arrow / dataset

Function dataset

python/pyarrow/tests/test_dataset.py:272–283  ·  view source on GitHub ↗
(mockfs)

Source from the content-addressed store, hash-verified

270
271@pytest.fixture
272def dataset(mockfs):
273 format = ds.ParquetFileFormat()
274 selector = fs.FileSelector('subdir', recursive=True)
275 options = ds.FileSystemFactoryOptions('subdir')
276 options.partitioning = ds.DirectoryPartitioning(
277 pa.schema([
278 pa.field('group', pa.int32()),
279 pa.field('key', pa.string())
280 ])
281 )
282 factory = ds.FileSystemDatasetFactory(mockfs, selector, format, options)
283 return factory.finish()
284
285
286@pytest.fixture(params=[

Callers

nothing calls this directly

Calls 7

ParquetFileFormatMethod · 0.80
DirectoryPartitioningMethod · 0.80
schemaMethod · 0.45
fieldMethod · 0.45
stringMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected