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

Function ArrayRangeEquals

cpp/src/arrow/compare.cc:1110–1122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1108}
1109
1110bool ArrayRangeEquals(const Array& left, const Array& right, int64_t left_start_idx,
1111 int64_t left_end_idx, int64_t right_start_idx,
1112 const EqualOptions& options, bool floating_approximate) {
1113 bool are_equal =
1114 CompareArrayRanges(*left.data(), *right.data(), left_start_idx, left_end_idx,
1115 right_start_idx, options, floating_approximate);
1116 if (!are_equal) {
1117 ARROW_IGNORE_EXPR(PrintDiff(
1118 left, right, left_start_idx, left_end_idx, right_start_idx,
1119 right_start_idx + (left_end_idx - left_start_idx), options.diff_sink()));
1120 }
1121 return are_equal;
1122}
1123
1124bool ArrayEquals(const Array& left, const Array& right, const EqualOptions& opts,
1125 bool floating_approximate) {

Callers 4

ArrayEqualsFunction · 0.85
ArrayRangeApproxEqualsFunction · 0.85
RangeEqualsMethod · 0.85

Calls 5

CompareArrayRangesFunction · 0.85
PrintDiffFunction · 0.85
diff_sinkMethod · 0.80
use_atolMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected