| 1583 | |
| 1584 | |
| 1585 | def test_table_pickle(pickle_module): |
| 1586 | data = [ |
| 1587 | pa.chunked_array([[1, 2], [3, 4]], type=pa.uint32()), |
| 1588 | pa.chunked_array([["some", "strings", None, ""]], type=pa.string()), |
| 1589 | ] |
| 1590 | schema = pa.schema([pa.field('ints', pa.uint32()), |
| 1591 | pa.field('strs', pa.string())], |
| 1592 | metadata={b'foo': b'bar'}) |
| 1593 | table = pa.Table.from_arrays(data, schema=schema) |
| 1594 | |
| 1595 | result = pickle_module.loads(pickle_module.dumps(table)) |
| 1596 | result.validate() |
| 1597 | assert result.equals(table) |
| 1598 | |
| 1599 | |
| 1600 | def test_table_get_field(): |