Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-32613: [C++] Simplify IPC writer for dense unions (apache#33822
) JIRA: https://issues.apache.org/jira/browse/ARROW-17339 Closes: apache#32613 ### Rationale for this change Dense union offsets are always non-strictly monotonic for any given child as mandated by the spec, The C++ implementation still assumes that the offsets may be in any order. This can be improved. ### What changes are included in this PR? Just a change to eliminate looping over the size of a `DenseUnionArray` twice. ### Are these changes tested? I am not functionally changing anything. All changes respect the spec, and behavior should be 1:1 with the existing implementation. I believe existing tests should suffice. ### Are there any user-facing changes? There are no user facing changes for this. * Closes: apache#32613 Lead-authored-by: Ramasai Tadepalli <ramasai.tadepalli+3108@gmail.com> Co-authored-by: Ramasai <ramasai.tadepalli+3108@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
- Loading branch information