\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
| 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_; } |
no test coverage detected