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

Function test_reads_over_batch

python/pyarrow/tests/parquet/test_basic.py:877–888  ·  view source on GitHub ↗
(tempdir)

Source from the content-addressed store, hash-verified

875
876
877def test_reads_over_batch(tempdir):
878 data = [None] * (1 << 20)
879 data.append([1])
880 # Large list<int64> with mostly nones and one final
881 # value. This should force batched reads when
882 # reading back.
883 table = pa.Table.from_arrays([data], ['column'])
884
885 path = tempdir / 'arrow-11607.parquet'
886 pq.write_table(table, path)
887 table2 = pq.read_table(path)
888 assert table == table2
889
890
891def test_permutation_of_column_order(tempdir):

Callers

nothing calls this directly

Calls 3

appendMethod · 0.45
write_tableMethod · 0.45
read_tableMethod · 0.45

Tested by

no test coverage detected