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

Function test_empty_directory

python/pyarrow/tests/parquet/test_dataset.py:908–916  ·  view source on GitHub ↗
(tempdir)

Source from the content-addressed store, hash-verified

906
907
908def test_empty_directory(tempdir):
909 # ARROW-5310
910 empty_dir = tempdir / 'dataset'
911 empty_dir.mkdir()
912
913 dataset = pq.ParquetDataset(empty_dir)
914 result = dataset.read()
915 assert result.num_rows == 0
916 assert result.num_columns == 0
917
918
919def _test_write_to_dataset_with_partitions(base_path,

Callers

nothing calls this directly

Calls 1

readMethod · 0.95

Tested by

no test coverage detected