Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-17339

[C++] Simplify IPC writer for dense unions

    XMLWordPrintableJSON

Details

    Description

      In ARROW-10580 we fixed the Arrow C++ implementation so that dense union offsets are always (non-strictly) monotonic for a given child, as mandated by the spec.

      The IPC writer implementation, however, still assumes that dense union offsets may be in any order:
      https://github.com/apache/arrow/blob/5719576c611929dd790f7f8a1ae3169a8f96f7f1/cpp/src/arrow/ipc/writer.cc#L476-L485

      This can probably be simplified, making it slightly less costly to emit a sliced union array.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: