(tempdir)
| 857 | |
| 858 | |
| 859 | def test_empty_row_groups(tempdir): |
| 860 | # ARROW-3020 |
| 861 | table = pa.Table.from_arrays([pa.array([], type='int32')], ['f0']) |
| 862 | |
| 863 | path = tempdir / 'empty_row_groups.parquet' |
| 864 | |
| 865 | num_groups = 3 |
| 866 | with pq.ParquetWriter(path, table.schema) as writer: |
| 867 | for i in range(num_groups): |
| 868 | writer.write_table(table) |
| 869 | |
| 870 | reader = pq.ParquetFile(path) |
| 871 | assert reader.metadata.num_row_groups == num_groups |
| 872 | |
| 873 | for i in range(num_groups): |
| 874 | assert reader.read_row_group(i).equals(table) |
| 875 | |
| 876 | |
| 877 | def test_reads_over_batch(tempdir): |
nothing calls this directly
no test coverage detected