| 1536 | |
| 1537 | |
| 1538 | def test_table_pickle(pickle_module): |
| 1539 | data = [ |
| 1540 | pa.chunked_array([[1, 2], [3, 4]], type=pa.uint32()), |
| 1541 | pa.chunked_array([["some", "strings", None, ""]], type=pa.string()), |
| 1542 | ] |
| 1543 | schema = pa.schema([pa.field('ints', pa.uint32()), |
| 1544 | pa.field('strs', pa.string())], |
| 1545 | metadata={b'foo': b'bar'}) |
| 1546 | table = pa.Table.from_arrays(data, schema=schema) |
| 1547 | |
| 1548 | result = pickle_module.loads(pickle_module.dumps(table)) |
| 1549 | result.validate() |
| 1550 | assert result.equals(table) |
| 1551 | |
| 1552 | |
| 1553 | def test_table_get_field(): |