-
- Downloads
[SPARK-16071][SQL] Checks size limit when doubling the array size in BufferHolder
## What changes were proposed in this pull request? This PR Checks the size limit when doubling the array size in BufferHolder to avoid integer overflow. ## How was this patch tested? Manual test. Author: Sean Zhong <seanzhong@databricks.com> Closes #13829 from clockfly/SPARK-16071_2.
Showing
- sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/codegen/BufferHolder.java 14 additions, 2 deletions.../spark/sql/catalyst/expressions/codegen/BufferHolder.java
- sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/codegen/BufferHolderSuite.scala 39 additions, 0 deletions.../sql/catalyst/expressions/codegen/BufferHolderSuite.scala
Please register or sign in to comment