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

[C++] Convert Scalar values to Array values with length 1

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • C++
    • None

    Description

      A common approach to performing operations on both scalar and array values is to treat a Scalar as an array of length 1. For example, we cannot currently use our Cast kernels to cast a Scalar. It would be senseless to create separate kernel implementations specialized for a single value, and much easier to promote a scalar to an Array, execute the kernel, then unbox the result back into a Scalar

      Attachments

        Activity

          People

            Unassigned Unassigned
            wesm Wes McKinney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: