(ty)
| 847 | @pytest.mark.large_memory |
| 848 | @pytest.mark.parametrize("ty", [pa.large_binary(), pa.large_string()]) |
| 849 | def 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 |