You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-50237: [C++] Migrate arrow/ipc/metadata_internal.h to Result<T> (#50245)
### Rationale for this change
Many APIs in `arrow/ipc/metadata_internal.h` used a `T* out` parameter
for output and returned a `Status`. This migrates those APIs to return
`Result<T>` instead, which is the modern Arrow C++ convention.
### What changes are included in this PR?
Migrated the following functions from `Status` + output parameter pattern
to `Result<T>`:
- `GetKeyValueMetadata`
- `WriteSchemaMessage`
- `WriteRecordBatchMessage`
- `WriteDictionaryMessage`
Updated all call sites in:
- `arrow/ipc/metadata_internal.cc`
- `arrow/ipc/reader.cc`
- `arrow/ipc/message.cc`
- `arrow/ipc/writer.cc`
- `arrow/ipc/message_internal_test.cc`
- `arrow/ipc/read_write_test.cc`
### Are these changes tested?
Yes. All existing IPC tests pass:
- `arrow-ipc-message-internal-test`: 8/8 passed
- `arrow-ipc-read-write-test`: 409/410 passed (1 pre-existing
failure due to missing `ARROW_TEST_DATA`)
### Are there any user-facing changes?
No. These are internal APIs so no compatibility changes are needed.
Closes#50237
Authored-by: Shally Katariya <156352038+Shally-Katariya@users.noreply.github.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
0 commit comments