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

Method Equals

cpp/src/arrow/table.cc:568–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566} // namespace
567
568bool 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
590Result<std::shared_ptr<Table>> Table::CombineChunks(MemoryPool* pool) const {
591 const int ncolumns = num_columns();

Callers 6

AddColumnMethod · 0.45
SetColumnMethod · 0.45
ValidateMetaMethod · 0.45
FromRecordBatchesMethod · 0.45
ConcatenateTablesFunction · 0.45
PromoteTableToSchemaFunction · 0.45

Calls 8

CanIgnoreNanFunction · 0.85
use_schemaMethod · 0.80
use_metadataMethod · 0.80
num_columnsFunction · 0.70
num_columnsMethod · 0.45
num_rowsMethod · 0.45
schemaMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected