| 566 | } // namespace |
| 567 | |
| 568 | bool Table::Equals(const Table& other, const EqualOptions& opts) const { |
| 569 | if (this == &other) { |
| 570 | if (CanIgnoreNan(*schema_, opts)) { |
| 571 | return true; |
| 572 | } |
| 573 | } else { |
| 574 | if (num_columns() != other.num_columns() || num_rows_ != other.num_rows()) { |
| 575 | return false; |
| 576 | } else if (opts.use_schema() && |
| 577 | !schema_->Equals(*other.schema(), opts.use_metadata())) { |
| 578 | return false; |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | for (int i = 0; i < this->num_columns(); i++) { |
| 583 | if (!this->column(i)->Equals(other.column(i), opts)) { |
| 584 | return false; |
| 585 | } |
| 586 | } |
| 587 | return true; |
| 588 | } |
| 589 | |
| 590 | Result<std::shared_ptr<Table>> Table::CombineChunks(MemoryPool* pool) const { |
| 591 | const int ncolumns = num_columns(); |
no test coverage detected