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

Function test_dataset_memory_map

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

Source from the content-addressed store, hash-verified

744
745@pytest.mark.numpy
746def test_dataset_memory_map(tempdir):
747 # ARROW-2627: Check that we can use ParquetDataset with memory-mapping
748 dirpath = tempdir / guid()
749 dirpath.mkdir()
750
751 table = _test_table(10, seed=0)
752 path = dirpath / '0.parquet'
753 _write_table(table, path, version='2.6')
754
755 dataset = pq.ParquetDataset(
756 dirpath, memory_map=True)
757 assert dataset.read().equals(table)
758
759
760@pytest.mark.numpy

Callers

nothing calls this directly

Calls 5

readMethod · 0.95
guidFunction · 0.90
_test_tableFunction · 0.90
_write_tableFunction · 0.90
equalsMethod · 0.80

Tested by

no test coverage detected