diff --git a/cpp/src/parquet/column_reader_benchmark.cc b/cpp/src/parquet/column_reader_benchmark.cc index b68faa0f1cbf2..61fe397cf1c30 100644 --- a/cpp/src/parquet/column_reader_benchmark.cc +++ b/cpp/src/parquet/column_reader_benchmark.cc @@ -267,7 +267,7 @@ static void DecodeLevels(Encoding::type level_encoding, int16_t max_level, int n } LevelDecoder decoder; - std::vector output_levels(num_levels); + std::vector output_levels(batch_size); for (auto _ : state) { state.PauseTiming(); decoder.SetData(level_encoding, max_level, num_levels, bytes.data(),