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

Function test_large_binary_array

python/pyarrow/tests/test_convert_builtin.py:849–857  ·  view source on GitHub ↗
(ty)

Source from the content-addressed store, hash-verified

847@pytest.mark.large_memory
848@pytest.mark.parametrize("ty", [pa.large_binary(), pa.large_string()])
849def test_large_binary_array(ty):
850 # Construct a large binary array with more than 4GB of data
851 s = b"0123456789abcdefghijklmnopqrstuvwxyz" * 10
852 nrepeats = math.ceil((2**32 + 5) / len(s))
853 data = [s] * nrepeats
854 arr = pa.array(data, type=ty)
855 assert isinstance(arr, pa.Array)
856 assert arr.type == ty
857 assert len(arr) == nrepeats
858
859
860@pytest.mark.slow

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected