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

Function make_chunked_array

python/pyarrow/tests/test_cuda.py:988–998  ·  view source on GitHub ↗
(n_elements_per_chunk, n_chunks)

Source from the content-addressed store, hash-verified

986
987
988def make_chunked_array(n_elements_per_chunk, n_chunks):
989 arrs = []
990 carrs = []
991 for _ in range(n_chunks):
992 batch = make_recordbatch(n_elements_per_chunk)
993 cbuf = cuda.serialize_record_batch(batch, global_context)
994 cbatch = cuda.read_record_batch(cbuf, batch.schema)
995 arrs.append(batch["f0"])
996 carrs.append(cbatch["f0"])
997
998 return pa.chunked_array(arrs), pa.chunked_array(carrs)
999
1000
1001def test_print_chunked_array():

Callers 1

test_print_chunked_arrayFunction · 0.85

Calls 4

make_recordbatchFunction · 0.85
chunked_arrayMethod · 0.80
read_record_batchMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected