Skip to content

Commit

Permalink
Fix indentation level in chunked_array.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Sep 5, 2023
1 parent 2973bda commit 4b4d709
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions cpp/src/arrow/chunked_array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,22 +113,23 @@ bool ChunkedArray::Equals(const ChunkedArray& other) const {
}

namespace {
bool supportsNaN(const arrow::DataType& type) {
bool supports_nan = false;

if (type.num_fields() == 0) {
// Only floating types support NaN
supports_nan |= is_floating(type.id());
} else {
for (const auto& field : type.fields()) {
supports_nan |= supportsNaN(*field->type());
if (supports_nan) {
break;
}

bool supportsNaN(const arrow::DataType& type) {
bool supports_nan = false;
if (type.num_fields() == 0) {
// Only floating types support NaN
supports_nan |= is_floating(type.id());
} else {
for (const auto& field : type.fields()) {
supports_nan |= supportsNaN(*field->type());
if (supports_nan) {
break;
}
}
return supports_nan;
}
return supports_nan;
}

} // namespace

bool ChunkedArray::Equals(const std::shared_ptr<ChunkedArray>& other) const {
Expand Down

0 comments on commit 4b4d709

Please sign in to comment.