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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to