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

Function test_struct_array_from_chunked

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

Source from the content-addressed store, hash-verified

969
970
971def test_struct_array_from_chunked():
972 # ARROW-11780
973 # Check that we don't segfault when trying to build
974 # a StructArray from a chunked array.
975 chunked_arr = pa.chunked_array([[1, 2, 3], [4, 5, 6]])
976
977 with pytest.raises(TypeError, match="Expected Array"):
978 pa.StructArray.from_arrays([chunked_arr], ["foo"])
979
980
981@pytest.mark.parametrize("offset", (0, 1))

Callers

nothing calls this directly

Calls 1

chunked_arrayMethod · 0.80

Tested by

no test coverage detected