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

Function test_file_count_rows_no_batches

python/pyarrow/tests/test_ipc.py:205–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203
204
205def test_file_count_rows_no_batches():
206 schema = pa.schema([('a', pa.int64())])
207 sink = pa.BufferOutputStream()
208 with pa.ipc.new_file(sink, schema):
209 pass
210
211 reader = pa.ipc.open_file(sink.getvalue())
212 assert reader.num_record_batches == 0
213 assert reader.count_rows() == 0
214
215
216def test_open_file_from_buffer(file_fixture):

Callers

nothing calls this directly

Calls 3

BufferOutputStreamMethod · 0.80
count_rowsMethod · 0.80
schemaMethod · 0.45

Tested by

no test coverage detected