| 547 | namespace { |
| 548 | |
| 549 | bool ContainFloat(const std::shared_ptr<DataType>& type) { |
| 550 | if (is_floating(type->id())) { |
| 551 | return true; |
| 552 | } |
| 553 | |
| 554 | for (const auto& field : type->fields()) { |
| 555 | if (ContainFloat(field->type())) { |
| 556 | return true; |
| 557 | } |
| 558 | } |
| 559 | return false; |
| 560 | } |
| 561 | |
| 562 | bool CanIgnoreNan(const Schema& schema, const EqualOptions& opts) { |
| 563 | if (opts.nans_equal()) { |
no test coverage detected