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

[C++] Add function for retrieving a scalar from an array slot

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.15.1
    • 1.0.0
    • C++
    • None

    Description

      It'd be useful to construct scalar values given an array and an index.

      /* static */ std::shared_ptr<Scalar> Scalar::FromArray(const Array&, int64_t);
      

      Since this is much less efficient than unboxing the entire array and accessing its buffers directly, it should not be used in hot loops.

      kszucs fsaintjacques

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: