Repository navigation
Closed
Description
Describe the enhancement requested
Now that Dictionary delta/replacement has been implemented on Arrow Flight via:
- GH-45055: [C++][Flight] Update Flight Server RecordBatchStreamImpl to reuse ipc::RecordBatchWriter with custom IpcPayloadWriter instead of manually generating FlightPayload #47115
- GH-26727: [C++][Flight] Use ipc::RecordBatchWriter with custom IpcPayloadWriter for TransportMessageWriter (DoExchange) #47410
as discussed on:
And:
We can expose the existing:
arrow/cpp/src/arrow/ipc/reader.h
Lines 47 to 62 in 69d2487
| struct ReadStats { | |
| /// Number of IPC messages read. | |
| int64_t num_messages = 0; | |
| /// Number of record batches read. | |
| int64_t num_record_batches = 0; | |
| /// Number of dictionary batches read. | |
| /// | |
| /// Note: num_dictionary_batches >= num_dictionary_deltas + num_replaced_dictionaries | |
| int64_t num_dictionary_batches = 0; | |
| /// Number of dictionary deltas read. | |
| int64_t num_dictionary_deltas = 0; | |
| /// Number of replaced dictionaries (i.e. where a dictionary batch replaces | |
| /// an existing dictionary with an unrelated new dictionary). | |
| int64_t num_replaced_dictionaries = 0; | |
| }; |
to FlightStreamReader in order to be able to better test/debug and expose the number of messages/dictionary replacements/deltas received on the streams.
Component(s)
C++, FlightRPC
Activity
Add TODO for inspecting ReaderStats once apacheGH-47422 is implemented
apacheGH-47422: [Python][C++][Flight] Expose ipc::ReadStats in Flight…
GH-47422: [Python][C++][Flight] Expose ipc::ReadStats in Flight Metad…
raulcd commentedon Sep 4, 2025
Issue resolved by pull request 47432
#47432
apacheGH-47422: [Python][C++][Flight] Expose ipc::ReadStats in Flight…