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

Function test_open_stream_options

python/pyarrow/tests/test_ipc.py:313–324  ·  view source on GitHub ↗
(stream_fixture, options)

Source from the content-addressed store, hash-verified

311 pa.ipc.IpcReadOptions(use_threads=False),
312])
313def test_open_stream_options(stream_fixture, options):
314 stream_fixture.write_batches()
315 source = stream_fixture.get_source()
316
317 reader = pa.ipc.open_stream(source, options=options)
318
319 reader.read_all()
320 st = reader.stats
321 assert st.num_messages == 6
322 assert st.num_record_batches == 5
323
324 assert tuple(st) == tuple(stream_fixture.write_stats)
325
326
327def test_open_stream_with_wrong_options(stream_fixture):

Callers

nothing calls this directly

Calls 2

write_batchesMethod · 0.80
get_sourceMethod · 0.80

Tested by

no test coverage detected