Skip to content

Commit

Permalink
Update struct.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
fengguangyuan committed May 30, 2016
1 parent ed64651 commit b115452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/types/struct.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ bool StructArray::RangeEquals(int32_t start_idx, int32_t end_idx, int32_t other_
if (IsNull(i) != arr->IsNull(o_i)) { return false; }
if (IsNull(i)) continue;
for (size_t j = 0; j < field_arrays_.size(); ++j) {
// TODO: to optimize this -- really we should be comparing stretches
// of non-null data rather than looking at one value at a time.
// TODO: really we should be comparing stretches of non-null data
// rather than looking at one value at a time.
equal_fields = field(j)->RangeEquals(i, i + 1, o_i, other->field(j));
if (!equal_fields) { return false; }
}
Expand Down

0 comments on commit b115452

Please sign in to comment.