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

Function test_bytesio_readwrite

python/pyarrow/tests/test_orc.py:281–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279
280
281def test_bytesio_readwrite():
282 from pyarrow import orc
283 from io import BytesIO
284
285 buf = BytesIO()
286 a = pa.array([1, None, 3, None])
287 b = pa.array([None, "Arrow", None, "ORC"])
288 table = pa.table({"int64": a, "utf8": b})
289 orc.write_table(table, buf)
290 buf.seek(0)
291 orc_file = orc.ORCFile(buf)
292 output_table = orc_file.read()
293 assert table.equals(output_table)
294
295
296def test_buffer_readwrite():

Callers

nothing calls this directly

Calls 5

readMethod · 0.95
seekMethod · 0.80
equalsMethod · 0.80
arrayMethod · 0.45
write_tableMethod · 0.45

Tested by

no test coverage detected