sunchao commented on a change in pull request #32753: URL: https://github.com/apache/spark/pull/32753#discussion_r657286411
########## File path: sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/VectorizedColumnReader.java ########## @@ -294,6 +292,7 @@ private void initDataReader(Encoding dataEncoding, ByteBufferInputStream in) thr private void readPageV1(DataPageV1 page) throws IOException { this.pageValueCount = page.getValueCount(); + this.pageFirstRowIndex = page.getFirstRowIndex().orElse(0L); Review comment: yea it can return 0, in which case it is the same as without column index and the whole page has to be read. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org