| 2747 | |
| 2748 | |
| 2749 | def test_table_repr_to_string_ellipsis(): |
| 2750 | # Schema passed explicitly |
| 2751 | schema = pa.schema([pa.field('c0', pa.int16(), |
| 2752 | metadata={'key': 'value'}), |
| 2753 | pa.field('c1', pa.int32())], |
| 2754 | metadata={b'foo': b'bar'}) |
| 2755 | |
| 2756 | tab = pa.table([pa.array([1, 2, 3, 4]*10, type='int16'), |
| 2757 | pa.array([10, 20, 30, 40]*10, type='int32')], |
| 2758 | schema=schema) |
| 2759 | assert str(tab) == """pyarrow.Table |
| 2760 | c0: int16 |
| 2761 | c1: int32 |
| 2762 | ---- |
| 2763 | c0: [[1,2,3,4,1,...,4,1,2,3,4]] |
| 2764 | c1: [[10,20,30,40,10,...,40,10,20,30,40]]""" |
| 2765 | |
| 2766 | |
| 2767 | def test_record_batch_repr_to_string(): |