This page follows the
Arrow Columnar Format
specification and its FlatBuffers schemas in
format/
(Message.fbs, Schema.fbs, File.fbs), all read
2026-11-12. Numbers are little-endian unless the schema says otherwise.
Encapsulated messages
| Field | Size | Meaning |
|---|---|---|
| Continuation | 4 | FF FF FF FF. Files written before Arrow 0.15 leave it out. |
| Metadata size | 4 | Size of the FlatBuffers Message plus padding, a multiple of 8. |
| Message | … | FlatBuffers Message: version, header (a union), bodyLength, custom_metadata. |
| Body | bodyLength | The buffers, each aligned to 8 bytes (64 recommended). |
A stream is a Schema message, then dictionary batches and record
batches, ended by FF FF FF FF 00 00 00 00. Header types:
Schema, DictionaryBatch, RecordBatch,
Tensor, SparseTensor. Metadata versions run from V1 (0) to
V5 (4), the current one.
File format
ARROW1and 2 zero bytes.- A stream as above (the schema, then batches, then the end marker).
- The footer, a FlatBuffers
Footer:version,schema,dictionariesandrecordBatchesas lists ofBlock(offsetint64,metaDataLengthint32,bodyLengthint64),custom_metadata. - The footer’s size, 4 bytes.
ARROW1.
The file format does not allow dictionary replacement: each dictionary may be sent once, plus deltas.
Schema and fields
Schema:endianness(0 little, 1 big),fields,custom_metadata,features(1 dictionary replacement, 2 compressed body).Field:name,nullable,type,dictionary(id,indexType,isOrdered,dictionaryKind),children,custom_metadata(key and value strings, such asARROW:extension:namefor extension types).
| ID | Type | Parameters |
|---|---|---|
| 1 | Null | |
| 2 | Int | bitWidth (8, 16, 32, 64), is_signed |
| 3 | FloatingPoint | precision: 0 half, 1 single, 2 double |
| 4 | Binary | 32-bit offsets |
| 5 | Utf8 | 32-bit offsets |
| 6 | Bool | Bit-packed |
| 7 | Decimal | precision, scale, bitWidth (32, 64, 128, 256) |
| 8 | Date | unit: 0 day (int32), 1 millisecond (int64) |
| 9 | Time | unit (0 s, 1 ms, 2 µs, 3 ns), bitWidth |
| 10 | Timestamp | unit, timezone (absent for local times) |
| 11 | Interval | unit: 0 year-month, 1 day-time, 2 month-day-nano |
| 12 | List | One child; 32-bit offsets |
| 13 | Struct | Children |
| 14 | Union | mode (0 sparse, 1 dense), typeIds |
| 15 | FixedSizeBinary | byteWidth |
| 16 | FixedSizeList | listSize |
| 17 | Map | keysSorted; a list of key-value structs |
| 18 | Duration | unit |
| 19 | LargeBinary | 64-bit offsets |
| 20 | LargeUtf8 | 64-bit offsets |
| 21 | LargeList | 64-bit offsets |
| 22 | RunEndEncoded | Run ends and values children |
| 23 | BinaryView | 16-byte views and variadic data buffers |
| 24 | Utf8View | As BinaryView |
| 25 | ListView | Offsets and sizes, 32-bit |
| 26 | LargeListView | Offsets and sizes, 64-bit |
Record batches
RecordBatch:length(rows),nodes(oneFieldNodeper field, depth first:length,null_count),buffers(offsetandlengthin the body),compression,variadicBufferCounts(for view types).DictionaryBatch:id,data(a record batch with one column),isDelta.- Buffers per array: a validity bitmap (least significant bit first; may be empty when there are no nulls), then offsets and/or values as the type needs.
BodyCompression:codec0 LZ4 frame, 1 Zstandard;method0 buffer by buffer. Each compressed buffer starts with its uncompressed length as int64, or −1 when it was left uncompressed.
Buffer layouts
From the Arrow Columnar Format specification (Columnar.rst, read
2026-11-13). Buffers in a record batch are listed depth first in this order for each
layout; the type decides the layout.
| Layout | Buffer 0 | Buffer 1 | Buffer 2 | Variadic | Types |
|---|---|---|---|---|---|
| Primitive | validity | data | Boolean (bit-packed), Int, FloatingPoint, Decimal, Date, Time, Timestamp, Interval, Duration, FixedSizeBinary (the slot width is the byte width) | ||
| Variable binary | validity | offsets (length + 1 signed 32 or 64 bit) | data | Binary, Utf8 (32-bit); LargeBinary, LargeUtf8 (64-bit) | |
| Variable binary view | validity | views (16 bytes each) | data buffers | BinaryView, Utf8View | |
| List | validity | offsets | List, LargeList, Map (a list of key-value structs); one child array | ||
| List view | validity | offsets | sizes | ListView, LargeListView; one child array | |
| Fixed-size list | validity | FixedSizeList; slot j is the slice [j×N, (j+1)×N) of the child | |||
| Struct | validity | One child array per field | |||
| Sparse union | type ids (int8) | Every child is as long as the union | |||
| Dense union | type ids (int8) | offsets (int32) | Children of any lengths; offsets increase within each child | ||
| Null | No buffers at all | ||||
| Dictionary-encoded | validity | indices (the layout of an integer primitive) | The dictionary is a separate array sent in dictionary batches | ||
| Run-end encoded | No buffers; two children, run_ends then values |
- Alignment. In memory 8- or 64-byte alignment and padding is recommended; in IPC it is enforced, and 64 is preferred. Padding bytes need no particular value. Array length and null count are 64-bit signed in the metadata; an implementation may support only 32-bit lengths (a multi-language setup should stay under 231−1 elements per array and chunk larger data).
- Validity. A set bit means valid:
is_valid[j] = bitmap[j / 8] & (1 << (j % 8)), at least one bit per slot, unset at allocation including padding. With a null count of 0 the bitmap may be absent. A nested array has its own validity, independent of its children's: a child slot is valid only if both bits are set. Unions have no validity bitmap; nullness comes from the children. A run-end encoded parent has none either and its null count is 0. - Offsets.
slot_position = offsets[j],slot_length = offsets[j+1] − offsets[j]; non-decreasing even for null slots; a null slot may have non-zero length with undefined content; serialising should rebase the first offset to 0. In a list view the sizes are explicit, offsets may be out of order, and0 ≤ offsets[i] ≤ child lengthand0 ≤ offsets[i] + sizes[i] ≤ child lengthhold even for nulls. - Binary view. Each 16-byte view starts with a 32-bit length. Up to 12 bytes: the bytes themselves follow, zero-padded. Over 12: a 4-byte prefix (the first four bytes), a 32-bit buffer index (0 is the first data buffer, after the validity and views buffers) and a 32-bit offset; the range
[offset, offset + length)must lie inside that buffer. All the integers are signed. The record batch'svariadicBufferCountssays how many data buffers each view column has. - Union. Type ids are int8; by default they equal the child index, and the schema's
typeIdscan map index to id. More than 128 types can be modelled as a union of unions. - Dictionary. The index type is an integer of 8 to 64 bits, signed preferred; the null count comes from the indices only. A dictionary may contain duplicates or nulls.
- Run-end encoded.
run_endsis int16, int32 or int64, positive, strictly ascending, never null: each is the logical index where its run ends, so a run's length is the difference of neighbours. Nulls are runs whose value is null.
Tensor and SparseTensor messages
From Tensor.fbs and SparseTensor.fbs (read 2026-11-13). Both
files are marked DEPRECATED and say implementations in general are not required to
implement these types. The sparse tensor file adds that, unlike the dense tensor, it
has no recommended replacement as a record batch column type, and that its index
structures are experimental.
| Table | Fields |
|---|---|
TensorDim | size (long, the length of the dimension), name (string, optional). |
Tensor | type (a Type union value, required; only fixed-width value types, no strings or nested types), shape ([TensorDim], required), strides ([long]: non-negative byte offsets to advance one value along each dimension; omitted means row-major, C order), data (a Buffer, required: the location and size of the data in the body). |
SparseTensor | type, shape as above; non_zero_length (long, the count of non-zero values); sparseIndex (a SparseTensorIndex union, required); data (Buffer, required: the non-zero values). |
SparseTensorIndexCOO | indicesType (an Int, required), indicesStrides ([long], byte strides; default row-major), indicesBuffer (Buffer, required), isCanonical (bool: true only if the indices are sorted in row-major order with no duplicates). The index is an N × M matrix: one row per non-zero value, one column per dimension. The row-major order is TensorFlow's; SciPy's canonical coo_matrix is column-major. |
SparseMatrixIndexCSX | compressedAxis (SparseMatrixCompressedAxis short: 0 Row, 1 Column), indptrType (Int, required), indptrBuffer (Buffer, required: 1 + number of rows entries, row i spans indptr[i] to indptr[i+1] of the values), indicesType (Int, required), indicesBuffer (Buffer, required: the column index of each non-zero, sorted within each row). For a 6×4 matrix with values 1 2 3 4 5 6 7 8 9: indptr = [0, 2, 3, 5, 5, 8, 10], indices = [1, 2, 2, 1, 3, 0, 2, 3, 1]. |
SparseTensorIndexCSF | Compressed sparse fibre, a generalisation of CSR that compresses each dimension recursively into prefix trees (each root-to-leaf path is one non-zero index): indptrType (Int), indptrBuffers ([Buffer], one for each pair of consecutive dimensions: indptrBuffers[dim][i] to [i+1] is the range of children of node i in indicesBuffers[dim+1]), indicesType (Int), indicesBuffers ([Buffer], one per dimension, the node values), axisOrder ([int], the order in which dimensions were traversed to build the tree). All required. |
SparseTensorIndex | Union of SparseTensorIndexCOO, SparseMatrixIndexCSX, SparseTensorIndexCSF (type 1, 2, 3). |
How FlatBuffers stores a message
The IPC metadata, the file footer and the schema are FlatBuffers. From the FlatBuffers “Internals” document (flatbuffers.dev/internals, read 2026-11-13); the format defines offsets and adjacency, not an exact memory order, so two writers may produce different bytes for the same data.
- Scalars are little-endian and aligned to their own size (IEEE 754 floats, two's complement integers). There is no magic number or version in a FlatBuffer; the reader must know the schema.
- Offsets.
uoffset_tis an unsigned 32-bit integer pointing forward (to a higher address) to every table, union member, string and vector;soffset_tis its signed form;voffset_tis an unsigned 16-bit integer. The buffer starts with auoffset_tto the root table. - Structs are fixed layouts stored inline in their parent (struct, table or vector); members are aligned to their size and the struct to its largest member, independently of any compiler, with explicit padding.
- Tables are reached by offset. A table starts with an
soffset_tto its vtable; the offset is subtracted from the table's start to find the vtable. After it come the present fields (aligned scalars, inline structs, or offsets), in no required order. The vtable is an array ofvoffset_t: element 0 is the vtable's size in bytes (including itself), element 1 the size of the table's inline data in bytes (including the vtable offset), then one entry per field declared in the schema the writer used, each the byte offset of the field from the table's start, or 0 if the field is absent (so the default value applies). A reader checks a field's vtable slot against element 0; a slot beyond it also means absent, which lets new code read old data. Equal vtables are shared by tables, and two fields may point at the same value. - Unions are two fields: an enum
_typebyte (0 =NONE, the union is not set) and an offset to the chosen table. - Strings and vectors are stored out of line: a 32-bit element count (excluding any terminator), then the elements contiguously, aligned. A string is a vector of bytes that is always NUL-terminated.
- Construction in the reference implementation works backwards from the end of the buffer.
Worked example from the document (schema with a Vec3 struct, name, hp):
20 (offset to root); vtable 16 (vtable size), 22 (table size), then six 16-bit slots 4, 0, 20, 16, 0, 0; table: int32 16 (back to the vtable), floats 1, 2, 3, uint32 8 (offset to the name), int16 50, int16 0 padding; string: uint32 4 then 66 72 65 64 00 00 00 00 (“fred”, terminator, padding). The document stresses this is only one valid encoding. FlexBuffers, the schema-less variant, is a different encoding and is not used by Arrow.
Canonical extension types
From the Arrow “Canonical Extension Types” document (arrow.apache.org/docs/format/CanonicalExtensions.html, read 2026-11-13). Canonical extensions are standardised by a mailing-list vote, must have a name starting arrow., and are stable once accepted. Extension metadata travels in the field metadata keys ARROW:extension:name and ARROW:extension:metadata.
| Name | Storage type | Parameters and serialised metadata |
|---|---|---|
arrow.fixed_shape_tensor | FixedSizeList whose value type is the element type and whose list_size is the product of the shape | Metadata is a JSON object: "shape" (the physical shape), optional "dim_names" (as many names as dimensions) and optional "permutation" (a permutation of 0..N-1; the i-th logical dimension is physical dimension permutation[i]; omitted when equal to the physical order). Example {"shape": [100, 200, 500], "permutation": [2, 0, 1]} has logical shape [500, 100, 200]. Elements are row-major. Unrelated to the deprecated Tensor IPC message. |
arrow.variable_shape_tensor | Struct with data (a List of the elements, one list per tensor) and shape (FixedSizeList<int32>[ndim]) | Metadata JSON, empty string when minimal: optional dim_names, permutation, and uniform_shape (an array with the constant size of each uniform dimension as int32 and null for dimensions that vary, for example [400, null, 3]; absent means all dimensions vary). Row-major; apart from permutation, the parameters describe the physical storage. |
arrow.json | String, LargeString or StringView; UTF-8 JSON per RFC 8259 | No parameters; metadata is an empty string or a JSON empty object (more fields may be added later but are never needed to read the array). |
arrow.uuid | FixedSizeBinary(16) | No parameters. Big-endian bytes, uninterpreted; any UUID version. |
arrow.opaque | any type (Null if no data) | JSON object with type_name (the unknown type's name in the external system) and vendor_name (the external system), for example {"type_name": "geometry", "vendor_name": "PostGIS"}. Never needed to interpret the data; applications must not build conventions on these values. It is for passing a column that cannot be interpreted (schema introspection, ADBC and JDBC adapters) and is not a container for file formats. |
arrow.bool8 | Int8: 0 is false, any non-zero (preferably 1) is true | No parameters; empty metadata. |
arrow.parquet.variant | Struct with a non-nullable metadata field (Binary, LargeBinary or BinaryView) and at least one of value (the same binary types) and typed_value (shredded values) | No parameters; empty metadata. Fields are matched by case-sensitive name, not position. A typed_value that is a list has non-nullable struct elements with value and/or typed_value; one that is a struct has non-nullable struct fields likewise. metadata may be dictionary- or run-end-encoded. A Variant null is encoded in value as byte 00, never in typed_value; a null typed_value means “not shredded”; for shredded object fields null value and null typed_value mean the field is missing. Unsigned Arrow values must be converted to a wide enough signed Variant type. |
arrow.timestamp_with_offset | Struct of timestamp (non-nullable Timestamp(unit, "UTC"), unit s, ms, us or ns) and offset_minutes (non-nullable Int16, negative west of UTC; normally −779 to +780) | Compatible with SQL TIMESTAMP WITH TIME ZONE; either field may be dictionary- or run-end-encoded. |
Primitive types allowed as shredded typed_value in the Variant extension (Variant type: Parquet physical/logical type: Arrow type): boolean: BOOLEAN: Boolean; int8, int16: INT32 with INT(8/16, true): Int8, Int16; int32: INT32: Int32; int64: INT64: Int64; float: FLOAT: Float32; double: DOUBLE: Float64; decimal4 (precision 1 to 9, scale 0 to precision): INT32 DECIMAL(P,S): Decimal32(P,S); decimal8 (10 to 18): INT64: Decimal64(P,S); decimal16 (19 to 38): BYTE_ARRAY or FIXED_LEN_BYTE_ARRAY: Decimal128(P,S); date: INT32 DATE: Date32; time: INT64 TIME(false, MICROS): Time64(us); timestamptz(6) and (9): INT64 TIMESTAMP(true, MICROS or NANOS): Timestamp(us or ns, UTC); timestampntz(6) and (9): TIMESTAMP(false, ...): Timestamp(us or ns); binary: BYTE_ARRAY: Binary/LargeBinary/BinaryView; string: BYTE_ARRAY STRING: String/LargeString/StringView; uuid: FIXED_LEN_BYTE_ARRAY[16] UUID: the UUID extension type. Types with no row (such as Null or the unsigned integers) must not be used. The document also lists community extension types (GeoArrow) outside the canonical set.
The C data interface and C stream interface
From arrow.apache.org/docs/format/CDataInterface.html and CStreamInterface.html (read 2026-11-13). Two small C structs, copyable into any project, for sharing Arrow arrays between libraries in one process without copies; not for persistence or other processes.
Format strings
| Format string | Type |
|---|---|
n, b | null, boolean |
c, C, s, S, i, I, l, L | int8, uint8, int16, uint16, int32, uint32, int64, uint64 |
e, f, g | float16, float32, float64 |
z, Z, vz | binary, large binary, binary view |
u, U, vu | utf-8 string, large utf-8 string, utf-8 view |
d:19,10, d:19,10,NNN | decimal (precision 19, scale 10); with a bit width NNN (decimal128 when omitted) |
w:42 | fixed-width binary of 42 bytes |
tdD, tdm | date32 (days), date64 (milliseconds) |
tts, ttm, ttu, ttn | time32 seconds, time32 milliseconds, time64 microseconds, time64 nanoseconds |
tss:tz, tsm:tz, tsu:tz, tsn:tz | timestamp in s, ms, us, ns with the time zone appended as-is after the colon, no quotes (the colon is kept if the zone is empty) |
tDs, tDm, tDu, tDn | duration in s, ms, us, ns |
tiM, tiD, tin | interval: months; days and time; month, day, nanoseconds |
+l, +L, +vl, +vL | list, large list, list-view, large list-view |
+w:123 | fixed-size list of 123 items |
+s, +m | struct; map (one child entries, a struct of key and value) |
+ud:I,J,..., +us:I,J,... | dense, sparse union with type ids I, J, … |
+r | run-end encoded (children run_ends, values) |
Dictionary-encoded types have no format string of their own: the format string is that of the index type and the value type is in the dictionary child (a dictionary-encoded decimal128(12,5) with int16 indices is s with a dictionary child d:12,5). Extension types use the storage type's format string, with ARROW:extension:name and ARROW:extension:metadata in metadata.
Structures
| Structure | Members (in order) |
|---|---|
ArrowSchema | const char* format (mandatory, NUL-terminated UTF-8); const char* name (optional); const char* metadata (optional, NULL if absent); int64_t flags; int64_t n_children; ArrowSchema** children (NULL only if no children); ArrowSchema* dictionary (present exactly for dictionary-encoded types); void (*release)(ArrowSchema*); void* private_data. |
ArrowArray | int64_t length; int64_t null_count (-1 if not computed); int64_t offset (0 or positive); int64_t n_buffers; int64_t n_children; const void** buffers; ArrowArray** children; ArrowArray* dictionary; void (*release)(ArrowArray*); void* private_data. |
ArrowArrayStream | int (*get_schema)(stream, ArrowSchema* out); int (*get_next)(stream, ArrowArray* out); const char* (*get_last_error)(stream); void (*release)(stream); void* private_data. |
- Flags (OR-ed):
ARROW_FLAG_DICTIONARY_ORDERED= 1,ARROW_FLAG_NULLABLE= 2,ARROW_FLAG_MAP_KEYS_SORTED= 4; omitted means 0; consumers may ignore them but should keep them. - Schema metadata is a binary string, not NUL-terminated: an
int32count N, then for each pair anint32key length, the key, anint32value length, the value; integers in native byte order (the pair [(key1, value1)] is01 00 00 00 04 00 00 00 key1 06 00 00 00 value1on a little-endian machine). - Buffers.
n_buffersfollows the Columnar format for the type (children's buffers are not included), except that binary and utf-8 view arrays have one extra buffer ofint64_tlengths of the variadic data buffers. Each buffer must hold at least length + offset values; pointers may be NULL only for a null bitmap whennull_countis 0, or for any buffer whose size would be 0. Alignment to the element type is recommended. - Ownership. The base struct is normally allocated by the consumer; everything it points to belongs to the producer. A released structure has
release == NULL. The consumer calls the base structure'sreleaseexactly once when done and never its children's; the producer's callback must release children and the dictionary, free what the struct owns, and setreleaseto NULL, usingprivate_datafor its bookkeeping. A consumer may move a struct by shallow copy, then marks the source released without calling release; child arrays may be moved out if the parent is then released at once; hence structs must be trivially relocatable (no pointer into the struct itself). - Record batches are exported as struct arrays, the schema metadata being that of the top-level
ArrowSchema. Exported data should be treated as immutable. - Stream.
get_nextreturns 0 on success, and a releasedArrowArrayon success means end of stream; non-zero values areerrno-style codes (recogniseEINVAL,ENOMEM,EIO);get_last_erroris valid only after an error and only until the next call; schema and arrays are released independently of the stream; the source is not thread-safe.
The C Device data interface, the PyCapsule interface and the Statistics schema are separate Arrow documents and were not read for this page.
Arrow Flight RPC
From arrow.apache.org/docs/format/Flight.html and the Flight.proto file of the Arrow repository (package arrow.flight.protocol, proto3, read 2026-11-13). Flight is gRPC plus Protobuf: streams of Arrow record batches in the IPC format, with a data body outside the Protobuf. Flight SQL is a separate document, not covered.
| RPC | Request, response | Purpose |
|---|---|---|
Handshake | stream HandshakeRequest, stream HandshakeResponse | Authentication exchange (protocol_version uint64 = 1, payload bytes = 2); the result is a token sent in headers of later calls. |
ListFlights | Criteria (expression bytes), stream FlightInfo | List available streams. |
GetFlightInfo | FlightDescriptor, FlightInfo | How to consume a flight; may create one on demand (a SQL statement, for example). Does not return until the query is complete. |
PollFlightInfo | FlightDescriptor, PollInfo | Start or poll a long-running query. |
GetSchema | FlightDescriptor, SchemaResult (schema bytes = 1, an IPC schema message) | Schema only. |
DoGet | Ticket (ticket bytes = 1), stream FlightData | Download one stream. |
DoPut | stream FlightData, stream PutResult (app_metadata bytes = 1) | Upload; the descriptor is in the first message; results can report progress. |
DoExchange | stream FlightData, stream FlightData | Two-way stream; descriptor in the first message. |
DoAction | Action (type string = 1, body bytes = 2), stream Result (body bytes = 1) | Application-defined actions. |
ListActions | Empty, stream ActionType (type = 1, description = 2) | Discover the actions. |
| Message | Fields (number) |
|---|---|
BasicAuth | username (2), password (3) |
FlightDescriptor | type (1: enum UNKNOWN 0, PATH 1, CMD 2), cmd bytes (2, only for CMD), path repeated string (3, only for PATH) |
FlightInfo | schema bytes (1), flight_descriptor (2), endpoint repeated FlightEndpoint (3), total_records int64 (4), total_bytes int64 (5), ordered bool (6), app_metadata bytes (7) |
FlightEndpoint | ticket (1), location repeated Location (2; Location.uri string = 1), expiration_time google.protobuf.Timestamp (3), app_metadata bytes (4) |
PollInfo | info FlightInfo (1), flight_descriptor (2; unset when finished), progress optional double (3, 0.0 to 1.0), expiration_time (4) |
FlightData | flight_descriptor (1), data_header bytes (2: the IPC Flatbuffers Message), app_metadata bytes (3), data_body bytes (1000: the IPC message body) |
| Action payload messages | CancelFlightInfoRequest (info = 1) and CancelFlightInfoResult (status = 1: CANCEL_STATUS_UNSPECIFIED 0, CANCELLED 1, CANCELLING 2, NOT_CANCELLABLE 3); RenewFlightEndpointRequest (endpoint = 1); session actions SetSessionOptionsRequest/Result, GetSessionOptionsRequest/Result, CloseSessionRequest/Result (SessionOptionValue is a oneof: string 1, bool 2, sfixed64 3, double 4, string list 5; errors INVALID_NAME 1, INVALID_VALUE 2, ERROR 3; close status CLOSED 1, CLOSING 2, NOT_CLOSEABLE 3) |
- Download.
GetFlightInforeturns endpoints, each with a ticket and locations; the client must consume every endpoint (in any order, even in parallel) withDoGet(ticket)at one of the locations; an empty location list, or the URIarrow-flight-reuse-connection://?, means reuse the current connection. Iforderedis true, data is the concatenation of the endpoints front to back (a client may ignore it, so servers wanting a guaranteed order return one endpoint); within one endpoint order is kept. An endpoint with an expiration time can be fetched repeatedly until then and extended with theRenewFlightEndpointaction;CancelFlightInfocancels.PollFlightInforeturns at once; whileflight_descriptoris set the client polls with that descriptor, theinfoalways being a complete FlightInfo to which servers only append endpoints; a server should not reply until the result differs (long poll). - Location URI schemes:
grpc:orgrpc+tcp:(plaintext),grpc+tls:,grpc+unix:,arrow-flight-reuse-connection:,http:/https:(a plain GET of the data, ticket ignored, IPC stream assumed even forapplication/octet-stream; other media types such as Parquet are indicated byContent-Type, and anAcceptheader may choose the format, with 406 or 415 as refusals). - Authentication: handshake token, header or middleware based, or mutual TLS.
- Error codes: UNKNOWN, INTERNAL, INVALID_ARGUMENT, TIMED_OUT, NOT_FOUND, ALREADY_EXISTS, CANCELLED, UNAUTHENTICATED, UNAUTHORIZED, UNIMPLEMENTED, UNAVAILABLE.
Dissociated IPC protocol
From arrow.apache.org/docs/format/DissociatedIPC.html (read 2026-11-13). The document is marked experimental and may change. It splits an IPC stream into a metadata stream (the Flatbuffers headers) and a body stream, so the bodies can stay in device, shared or remote memory.
- Transport needs: delimited messages, and tagged messages carrying a little-endian uint64 tag. A sequence number is a little-endian uint32, 0 for the first message and rolling over at
UINT32_MAX, tying a header to its body. - URI: a scheme such as
ucx:orfabric:with query parameterswant_data(required uint64 tag that starts a transfer; the message body is an opaque identifier such as a Flight ticket),free_data(optional uint64 tag for messages from the client listing memory that may now be freed) andremote_handle(optional base64 handle needed to reach shared or remote memory, such as a UCX rkey or a CUDA base pointer). - Metadata stream message: byte 0 is the type (
1Flatbuffers IPC metadata message,0end of stream), bytes 1 to 4 the sequence number, then the Flatbuffers bytes. The first message must be the schema, with sequence number 0, and numbers rise by 1. The stream ends with a 5-byte message:00and the sequence number. - Body stream: one tagged message for each IPC message that has a body (record batch, dictionary). Tag bits 0 to 31 are the sequence number, bits 32 to 55 are reserved (must be 0), bits 56 to 63 (the top byte) give the body type:
0the raw packed body buffers;1a list of little-endian uint64 values: the total size of all buffers, the number of buffers N, then N pairs of (address or offset, length) into shared or remote memory. Clients match bodies with the mask0x00000000FFFFFFFF. - Freeing: addresses the server sent must stay valid until the client sends a
free_data-tagged message holding one or more little-endian uint64 addresses; if the client disconnects first the server may clean up. Backpressure is left to the transport. Separate metadata and body connections, or one connection carrying both, are both allowed.