MCPcopy Create free account
hub / github.com/apache/arrow / test_cast_list_to_primitive

Function test_cast_list_to_primitive

python/pyarrow/tests/test_array.py:1766–1774  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1764
1765
1766def 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
1777def test_slice_chunked_array_zero_chunks():

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected