dongjoon-hyun commented on code in PR #46485: URL: https://github.com/apache/spark/pull/46485#discussion_r1596258635
########## sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/VectorizedColumnReader.java: ########## @@ -353,8 +353,9 @@ private void initDataReader( throw new IOException("could not read page in col " + descriptor, e); } // for PARQUET-246 (See VectorizedDeltaByteArrayReader.setPreviousValues) - if (CorruptDeltaByteArrays.requiresSequentialReads(writerVersion, dataEncoding) && - previousReader instanceof RequiresPreviousReader) { + if (CorruptDeltaByteArrays.requiresSequentialReads(writerVersion, dataEncoding) + && previousReader != null + && dataColumn instanceof RequiresPreviousReader) { Review Comment: Could you file a JIRA issue, @yutsareva ? -- 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. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org 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