You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by vi...@apache.org on 2023/01/20 17:37:10 UTC

[arrow-rs] branch master updated: Fix final page row count in parquet-index binary (#3554)

This is an automated email from the ASF dual-hosted git repository.

viirya pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new 0ec5f72e6 Fix final page row count in parquet-index binary (#3554)
0ec5f72e6 is described below

commit 0ec5f72e6d21556d5677b74dd5d45d93c5af0b38
Author: Raphael Taylor-Davies <17...@users.noreply.github.com>
AuthorDate: Fri Jan 20 17:37:04 2023 +0000

    Fix final page row count in parquet-index binary (#3554)
---
 parquet/src/bin/parquet-index.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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