felipecrv commented on code in PR #36018:
URL: https://github.com/apache/arrow/pull/36018#discussion_r1231207633
##########
cpp/src/arrow/array/data.cc:
##########
@@ -298,6 +298,7 @@ void FillZeroLengthArray(const DataType* type, ArraySpan*
span) {
void ArraySpan::FillFromScalar(const Scalar& value) {
static uint8_t kTrueBit = 0x01;
static uint8_t kFalseBit = 0x00;
+ auto* scratch_space = const_cast<Scalar&>(value).scratch_space_.data();
Review Comment:
This can be avoided by using a plain array instead of `std::array`.
--
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]