| 1644 | |
| 1645 | |
| 1646 | def test_table_pickle(pickle_module): |
| 1647 | data = [ |
| 1648 | pa.chunked_array([[1, 2], [3, 4]], type=pa.uint32()), |
| 1649 | pa.chunked_array([["some", "strings", None, ""]], type=pa.string()), |
| 1650 | ] |
| 1651 | schema = pa.schema([pa.field('ints', pa.uint32()), |
| 1652 | pa.field('strs', pa.string())], |
| 1653 | metadata={b'foo': b'bar'}) |
| 1654 | table = pa.Table.from_arrays(data, schema=schema) |
| 1655 | |
| 1656 | result = pickle_module.loads(pickle_module.dumps(table)) |
| 1657 | result.validate() |
| 1658 | assert result.equals(table) |
| 1659 | |
| 1660 | |
| 1661 | def test_table_get_field(): |