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

Function test_print_array

python/pyarrow/tests/test_cuda.py:961–974  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

959
960
961def test_print_array():
962 batch = make_recordbatch(10)
963 cbuf = cuda.serialize_record_batch(batch, global_context)
964 cbatch = cuda.read_record_batch(cbuf, batch.schema)
965 arr = batch["f0"]
966 carr = cbatch["f0"]
967 assert str(carr) == str(arr)
968
969 batch = make_recordbatch(100)
970 cbuf = cuda.serialize_record_batch(batch, global_context)
971 cbatch = cuda.read_record_batch(cbuf, batch.schema)
972 arr = batch["f0"]
973 carr = cbatch["f0"]
974 assert str(carr) == str(arr)
975
976
977@pytest.mark.parametrize("size", [10, 100])

Callers

nothing calls this directly

Calls 2

make_recordbatchFunction · 0.85
read_record_batchMethod · 0.45

Tested by

no test coverage detected