felipecrv commented on code in PR #33641:
URL: https://github.com/apache/arrow/pull/33641#discussion_r1109133067
##########
cpp/src/arrow/scalar.cc:
##########
@@ -583,6 +608,17 @@ Result<std::shared_ptr<Scalar>>
StructScalar::field(FieldRef ref) const {
}
}
+RunEndEncodedScalar::RunEndEncodedScalar(std::shared_ptr<Scalar> value,
+ std::shared_ptr<DataType> type)
+ : Scalar{std::move(type), value->is_valid}, value{std::move(value)} {}
Review Comment:
I looked at other Scalars now and they check indirectly by performing some
checked casts, so I will add a check here too. :+1:
--
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]