Skip to content

Commit

Permalink
Add debug check suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Jan 9, 2025
1 parent b05549e commit 9f9bc94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/src/parquet/size_statistics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ std::ostream& operator<<(std::ostream& os, const SizeStatistics& size_stats) {
void UpdateLevelHistogram(::arrow::util::span<const int16_t> levels,
::arrow::util::span<int64_t> histogram) {
const int64_t num_levels = static_cast<int64_t>(levels.size());
DCHECK_GE(histogram.size(), 1);
const int16_t max_level = static_cast<int16_t>(histogram.size() - 1);
if (max_level == 0) {
histogram[0] += num_levels;
Expand Down

0 comments on commit 9f9bc94

Please sign in to comment.