Github user gatorsmile commented on a diff in the pull request: https://github.com/apache/spark/pull/19266#discussion_r143343926 --- Diff: sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/codegen/BufferHolder.java --- @@ -35,6 +35,11 @@ * if the fields of row are all fixed-length, as the size of result row is also fixed. */ public class BufferHolder { + + // Some JVMs can't allocate arrays of length Integer.MAX_VALUE; actual max is somewhat + // smaller. Be conservative and lower the cap a little. + private static final int ARRAY_MAX = Integer.MAX_VALUE - 8; --- End diff -- Just curious how to get this value `-8`? Also cc @liufengdb
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org