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

Function test_table_combine_chunks

python/pyarrow/tests/test_table.py:1965–1975  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1963
1964
1965def test_table_combine_chunks():
1966 batch1 = pa.record_batch([pa.array([1]), pa.array(["a"])],
1967 names=['f1', 'f2'])
1968 batch2 = pa.record_batch([pa.array([2]), pa.array(["b"])],
1969 names=['f1', 'f2'])
1970 table = pa.Table.from_batches([batch1, batch2])
1971 combined = table.combine_chunks()
1972 combined.validate()
1973 assert combined.equals(table)
1974 for c in combined.columns:
1975 assert c.num_chunks == 1
1976
1977
1978def test_table_unify_dictionaries():

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
arrayMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected