smallzhongfeng commented on code in PR #40341: URL: https://github.com/apache/spark/pull/40341#discussion_r1142974426
########## sql/core/src/main/java/org/apache/spark/sql/execution/datasources/orc/OrcColumnarBatchReader.java: ########## @@ -204,7 +204,12 @@ public void initBatch( * by copying from ORC VectorizedRowBatch columns to Spark ColumnarBatch columns. */ private boolean nextBatch() throws IOException { - recordReader.nextBatch(wrap.batch()); + try { + recordReader.nextBatch(wrap.batch()); + } catch (NegativeArraySizeException e) { Review Comment: I also encountered the same stack issue. How much adjustment would be appropriate. @chong0929 -- 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