wesm commented on code in PR #13364: URL: https://github.com/apache/arrow/pull/13364#discussion_r897399548
########## cpp/src/arrow/compute/exec_internal.h: ########## @@ -72,6 +72,56 @@ class ARROW_EXPORT ExecBatchIterator { int64_t max_chunksize_; }; +/// \brief Break std::vector<Datum> into a sequence of non-owning +/// ExecSpan for kernel execution. The lifetime of the Datum vector +/// must be longer than the lifetime of this object +class ARROW_EXPORT ExecSpanIterator { + public: + ExecSpanIterator() = default; + + /// \brief Initialize itertor iterator and do basic argument validation + /// + /// \param[in] batch the input ExecBatch + /// \param[in] max_chunksize the maximum length of each ExecSpan. Depending + /// on the chunk layout of ChunkedArray. + Status Init(const ExecBatch& batch, ValueDescr::Shape output_shape = ValueDescr::ARRAY, + int64_t max_chunksize = kDefaultMaxChunksize); Review Comment: The default here is INT64_MAX, which is to say no chunking -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org