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

Method ReadAndCompare

cpp/src/parquet/column_writer_test.cc:464–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462
463template <>
464void TestPrimitiveWriter<Int96Type>::ReadAndCompare(Compression::type compression,
465 int64_t num_rows,
466 bool page_checksum_verify) {
467 this->SetupValuesOut(num_rows);
468 this->ReadColumnFully(compression, page_checksum_verify);
469
470 auto comparator = MakeComparator<Int96Type>(Type::INT96, SortOrder::SIGNED);
471 for (size_t i = 0; i < this->values_.size(); i++) {
472 if (comparator->Compare(this->values_[i], this->values_out_[i]) ||
473 comparator->Compare(this->values_out_[i], this->values_[i])) {
474 ARROW_SCOPED_TRACE("i = ", i);
475 }
476 ASSERT_FALSE(comparator->Compare(this->values_[i], this->values_out_[i]));
477 ASSERT_FALSE(comparator->Compare(this->values_out_[i], this->values_[i]));
478 }
479 ASSERT_EQ(this->values_, this->values_out_);
480}
481
482template <>
483void TestPrimitiveWriter<FLBAType>::ReadColumnFully(Compression::type compression,

Callers 2

Calls 4

ReadColumnFullyMethod · 0.95
SetupValuesOutMethod · 0.80
sizeMethod · 0.45
CompareMethod · 0.45

Tested by

no test coverage detected