This directory contains a simple curl command that:
output.arrows.To run this example, first start one of the server examples in the parent directory, then run the curl command.
To read the resulting file output.arrows and retrieve the schema and record batches that it contains, you can use one of the code examples below, or use similar examples in other languages that have Arrow implementations. You can also read the file with any application that supports reading data in the Arrow IPC streaming format.
import pyarrow as pa with open("output.arrows", "rb") as f: reader = pa.ipc.open_stream(f) schema = reader.schema batch = reader.read_next_batch() # ... # or alternatively: batches = [b for b in reader]
library(arrow) reader <- RecordBatchStreamReader$create(ReadableFile$create("output.arrows")) schema <- reader$schema batch <- reader$read_next_batch() # ... # or alternatively: table <- reader$read_table()