| 538 | namespace { |
| 539 | |
| 540 | bool ContainFloat(const std::shared_ptr<DataType>& type) { |
| 541 | if (is_floating(type->id())) { |
| 542 | return true; |
| 543 | } |
| 544 | |
| 545 | for (const auto& field : type->fields()) { |
| 546 | if (ContainFloat(field->type())) { |
| 547 | return true; |
| 548 | } |
| 549 | } |
| 550 | return false; |
| 551 | } |
| 552 | |
| 553 | bool CanIgnoreNan(const Schema& schema, const EqualOptions& opts) { |
| 554 | if (opts.nans_equal()) { |
no test coverage detected