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

Function test_cast_chunked_array_empty

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

Source from the content-addressed store, hash-verified

1797
1798
1799def test_cast_chunked_array_empty():
1800 # ARROW-8142
1801 for typ1, typ2 in [(pa.dictionary(pa.int8(), pa.string()), pa.string()),
1802 (pa.int64(), pa.int32())]:
1803
1804 arr = pa.chunked_array([], type=typ1)
1805 result = arr.cast(typ2)
1806 expected = pa.chunked_array([], type=typ2)
1807 assert result.equals(expected)
1808
1809
1810def test_chunked_array_data_warns():

Callers

nothing calls this directly

Calls 5

chunked_arrayMethod · 0.80
equalsMethod · 0.80
dictionaryMethod · 0.45
stringMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected