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

Function CheckStatistics

cpp/src/parquet/file_deserialize_test.cc:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77template <typename H>
78static inline void CheckStatistics(const H& expected, const EncodedStatistics& actual) {
79 if (expected.statistics.__isset.max) {
80 ASSERT_EQ(expected.statistics.max, actual.max());
81 }
82 if (expected.statistics.__isset.min) {
83 ASSERT_EQ(expected.statistics.min, actual.min());
84 }
85 if (expected.statistics.__isset.null_count) {
86 ASSERT_EQ(expected.statistics.null_count, actual.null_count);
87 }
88 if (expected.statistics.__isset.distinct_count) {
89 ASSERT_EQ(expected.statistics.distinct_count, actual.distinct_count);
90 }
91}
92
93static std::vector<Compression::type> GetSupportedCodecTypes() {
94 std::vector<Compression::type> codec_types;

Callers 1

CheckDataPageHeaderFunction · 0.85

Calls 2

maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected