diff --git a/parquet/src/bin/parquet-index.rs b/parquet/src/bin/parquet-index.rs index 6622783e6cf4..cd4c9851d5fb 100644 --- a/parquet/src/bin/parquet-index.rs +++ b/parquet/src/bin/parquet-index.rs @@ -125,7 +125,7 @@ fn compute_row_counts(offset_index: &[PageLocation], rows: i64) -> Vec { out.push(o.first_row_index - last); last = o.first_row_index; } - out.push(rows); + out.push(rows - last); out }