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

Function ApproxEquals

cpp/src/arrow/record_batch.h:144–151  ·  view source on GitHub ↗

\brief Determine if two record batches are approximately equal If the absolute tolerance (atol) is not specified in \ref arrow::EqualOptions, 'arrow::kDefaultAbsoluteTolerance' is used. \param[in] other the RecordBatch to compare with \param[in] opts the options for equality comparisons \return true if batches are approximately equal

Source from the content-addressed store, hash-verified

142 /// \param[in] opts the options for equality comparisons
143 /// \return true if batches are approximately equal
144 bool ApproxEquals(const RecordBatch& other,
145 const EqualOptions& opts = EqualOptions::Defaults()) const {
146 auto resolved_options = opts.use_schema(false);
147 if (!resolved_options.atol()) {
148 resolved_options = resolved_options.atol(kDefaultAbsoluteTolerance);
149 }
150 return Equals(other, resolved_options);
151 }
152
153 /// \return the record batch's schema
154 const std::shared_ptr<Schema>& schema() const { return schema_; }

Callers 1

ApproxEqualsMethod · 0.85

Calls 2

DefaultsFunction · 0.70
EqualsFunction · 0.70

Tested by

no test coverage detected