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

[C++][Compute] CastFromNull does not use preallocated buffers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • C++
    • None

    Description

      When casting from null, currently new buffers are allocated for every batch of the computation. This is wasteful as for simple types data buffers are preallocated and the null bitmap is handled separately; CastFromNull need do no work at all (unless we decide to explicitly zero the data buffer). For varlength out types the offsets buffer is preallocated and should be zeroed, for struct types preallocation is not implemented (but should be as simple as preallocating each child array).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bkietz Ben Kietzman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: