Skip to content

Commit

Permalink
change output_levels.size() to batch_size
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Feb 5, 2024
1 parent 53f2e32 commit 3aea8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/parquet/column_reader_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static void DecodeLevels(Encoding::type level_encoding, int16_t max_level, int n
}

LevelDecoder decoder;
std::vector<int16_t> output_levels(num_levels);
std::vector<int16_t> output_levels(batch_size);
for (auto _ : state) {
state.PauseTiming();
decoder.SetData(level_encoding, max_level, num_levels, bytes.data(),
Expand Down

0 comments on commit 3aea8a3

Please sign in to comment.