pitrou commented on a change in pull request #10579:
URL: https://github.com/apache/arrow/pull/10579#discussion_r658061366
##########
File path: cpp/src/arrow/array/builder_base.h
##########
@@ -116,6 +116,10 @@ class ARROW_EXPORT ArrayBuilder {
/// This method is useful when appending null values to a parent nested type.
virtual Status AppendEmptyValues(int64_t length) = 0;
+ /// \brief Append a value from a scalar
+ virtual Status AppendScalar(const Scalar& scalar);
+ virtual Status AppendScalars(const ScalarVector& scalars);
Review comment:
I would also suggest the overload `AppendScalar(const Scalar& scalat,
int64_t nrepeats)` to append the same scalar a number of times.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]