diff --git a/cpp/src/parquet/column_writer_test.cc b/cpp/src/parquet/column_writer_test.cc index 3c03164de383e..ff26ae4613fd9 100644 --- a/cpp/src/parquet/column_writer_test.cc +++ b/cpp/src/parquet/column_writer_test.cc @@ -236,7 +236,10 @@ class TestPrimitiveWriter : public PrimitiveTypedTest { this->metadata_encoding_stats(); if (this->type_num() == Type::BOOLEAN) { ASSERT_EQ(encoding_stats[0].encoding, - version == ParquetVersion::PARQUET_1_0 ? Encoding::PLAIN : Encoding::RLE); + version != ParquetVersion::PARQUET_1_0 && + data_page_version == ParquetDataPageVersion::V2 + ? Encoding::RLE + : Encoding::PLAIN); ASSERT_EQ(encoding_stats[0].page_type, PageType::DATA_PAGE); } else if (version == ParquetVersion::PARQUET_1_0) { std::vector expected(