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

Function AssertColumnChunkMinMax

cpp/src/parquet/metadata_test.cc:336–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336void AssertColumnChunkMinMax(const FileMetaData& metadata,
337 ColumnOrder::type expected_order, int32_t min, int32_t max) {
338 auto column = GetOnlyColumnChunk(metadata, expected_order);
339 const std::string encoded_min = EncodeInt32(min);
340 const std::string encoded_max = EncodeInt32(max);
341
342 ASSERT_NE(nullptr, column->encoded_statistics());
343 EXPECT_EQ(encoded_min, column->encoded_statistics()->min());
344 EXPECT_EQ(encoded_max, column->encoded_statistics()->max());
345 ASSERT_NE(nullptr, column->statistics());
346 EXPECT_EQ(encoded_min, column->statistics()->EncodeMin());
347 EXPECT_EQ(encoded_max, column->statistics()->EncodeMax());
348}
349
350} // namespace
351

Callers 1

TESTFunction · 0.85

Calls 8

GetOnlyColumnChunkFunction · 0.85
EncodeInt32Function · 0.85
EncodeMinMethod · 0.80
EncodeMaxMethod · 0.80
encoded_statisticsMethod · 0.45
minMethod · 0.45
maxMethod · 0.45
statisticsMethod · 0.45

Tested by

no test coverage detected