felipecrv commented on code in PR #35149:
URL: https://github.com/apache/arrow/pull/35149#discussion_r1175560919
##########
cpp/src/arrow/array/data.h:
##########
@@ -180,25 +180,46 @@ struct ARROW_EXPORT ArrayData {
std::shared_ptr<ArrayData> Copy() const { return
std::make_shared<ArrayData>(*this); }
- bool IsNull(int64_t i) const { return !IsValid(i); }
+ inline bool IsNull(int64_t i) const { return !IsValid(i); }
- bool IsValid(int64_t i) const {
+ inline bool IsValid(int64_t i) const {
if (buffers[0] != NULLPTR) {
return bit_util::GetBit(buffers[0]->data(), i + offset);
}
const auto type = this->type->id();
if (type == Type::SPARSE_UNION) {
return !internal::IsNullSparseUnion(*this, i);
- }
- if (type == Type::DENSE_UNION) {
+ } else if (type == Type::DENSE_UNION) {
Review Comment:
Not on my editor. Where did you see this?
--
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]