paleolimbot opened a new pull request, #917:
URL: https://github.com/apache/arrow-nanoarrow/pull/917
Adds LZ4 support to the meson and Python builds.
```python
import io
import nanoarrow as na
import pyarrow as pa
buf = io.BytesIO()
batch = pa.record_batch({"x": range(1000)})
with pa.ipc.new_stream(buf, batch.schema,
options=pa.ipc.IpcWriteOptions(compression="lz4")) as w:
w.write_batch(batch)
buf.seek(0)
na.ArrayStream.from_readable(buf).read_all()
# nanoarrow.Array<non-nullable struct<x: int64>>[1000]
# {'x': 0}
# {'x': 1}
# {'x': 2}
# {'x': 3}
# {'x': 4}
# {'x': 5}
# {'x': 6}
# {'x': 7}
# {'x': 8}
# {'x': 9}
# ...and 990 more items
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]