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

Function AssertColumnChunkMinMax

cpp/src/parquet/metadata_test.cc:335–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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