westonpace commented on code in PR #15083:
URL: https://github.com/apache/arrow/pull/15083#discussion_r1085585146
##########
cpp/src/arrow/compute/exec.h:
##########
@@ -174,7 +175,10 @@ struct ARROW_EXPORT ExecBatch {
explicit ExecBatch(const RecordBatch& batch);
- static Result<ExecBatch> Make(std::vector<Datum> values);
+ /// \brief Infer the ExecBatch length from values.
+ static Result<int64_t> InferLength(const std::vector<Datum>& values);
Review Comment:
```suggestion
/// \brief Infer the ExecBatch length from values.
///
/// \return the inferred length of the batch. If there are no values in
the batch
/// then kEmptyInput is returned. If the values in the batch
have
/// different lengths then kInvalidValues is returned.
static Result<int64_t> InferLength(const std::vector<Datum>& values);
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]