MCPcopy Create free account
hub / github.com/apache/arrow / ArrayRangeEquals

Function ArrayRangeEquals

cpp/src/arrow/compare.cc:1124–1135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1122} // namespace
1123
1124bool ArrayRangeEquals(const Array& left, const Array& right, int64_t left_start_idx,
1125 int64_t left_end_idx, int64_t right_start_idx,
1126 const EqualOptions& options) {
1127 bool are_equal = CompareArrayRanges(*left.data(), *right.data(), left_start_idx,
1128 left_end_idx, right_start_idx, options);
1129 if (!are_equal) {
1130 ARROW_IGNORE_EXPR(PrintDiff(
1131 left, right, left_start_idx, left_end_idx, right_start_idx,
1132 right_start_idx + (left_end_idx - left_start_idx), options.diff_sink()));
1133 }
1134 return are_equal;
1135}
1136
1137bool ArrayRangeApproxEquals(const Array& left, const Array& right, int64_t left_start_idx,
1138 int64_t left_end_idx, int64_t right_start_idx,

Callers 4

ArrayRangeApproxEqualsFunction · 0.85
ArrayEqualsFunction · 0.85
RangeEqualsMethod · 0.85

Calls 3

CompareArrayRangesFunction · 0.85
PrintDiffFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected