(tempdir)
| 744 | |
| 745 | @pytest.mark.numpy |
| 746 | def 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 |
nothing calls this directly
no test coverage detected