MCPcopy Create free account
hub / github.com/apache/arrow-rs / iter_batches

Function iter_batches

arrow-pyarrow-integration-testing/tests/test_sql.py:601–603  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

599 schema = pa.schema([('ints', pa.list_(pa.int32()))])
600
601 def iter_batches():
602 yield pa.record_batch([[[1], [2, 42]]], schema)
603 raise ValueError("test error")
604
605 reader = pa.RecordBatchReader.from_batches(schema, iter_batches())
606

Callers 1

Calls 1

record_batchMethod · 0.45

Tested by

no test coverage detected