()
| 1764 | |
| 1765 | |
| 1766 | def test_cast_list_to_primitive(): |
| 1767 | # ARROW-8070: cast segfaults on unsupported cast from list<binary> to utf8 |
| 1768 | arr = pa.array([[1, 2], [3, 4]]) |
| 1769 | with pytest.raises(NotImplementedError): |
| 1770 | arr.cast(pa.int8()) |
| 1771 | |
| 1772 | arr = pa.array([[b"a", b"b"], [b"c"]], pa.list_(pa.binary())) |
| 1773 | with pytest.raises(NotImplementedError): |
| 1774 | arr.cast(pa.binary()) |
| 1775 | |
| 1776 | |
| 1777 | def test_slice_chunked_array_zero_chunks(): |