()
| 1963 | |
| 1964 | |
| 1965 | def 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 | |
| 1978 | def test_table_unify_dictionaries(): |