MCPcopy Create free account
hub / github.com/apache/impala / ValidateValues

Function ValidateValues

be/src/util/dict-test.cc:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34// is also exercised.
35template<typename InternalType>
36void ValidateValues(DictDecoder<InternalType>& decoder,
37const vector<InternalType>& values, int skip_at, int skip_count, bool skip_success) {
38 for (int i = 0; i < skip_at; ++i) {
39 InternalType j;
40 ASSERT_TRUE(decoder.GetNextValue(&j));
41 EXPECT_EQ(values[i], j) << i;
42 }
43 EXPECT_EQ(decoder.SkipValues(skip_count), skip_success);
44 for (int i = skip_at + skip_count; i < values.size(); ++i) {
45 InternalType j;
46 ASSERT_TRUE(decoder.GetNextValue(&j));
47 EXPECT_EQ(values[i], j) << i;
48 }
49}
50
51template<typename InternalType, parquet::Type::type PARQUET_TYPE>
52void ValidateDict(const vector<InternalType>& values,

Callers 1

ValidateDictFunction · 0.85

Calls 3

GetNextValueMethod · 0.80
SkipValuesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected