GitHub user tedyu opened a pull request: https://github.com/apache/spark/pull/12225
SPARK-14448 Improvements to ColumnVector ## What changes were proposed in this pull request? In this PR, two changes are proposed for ColumnVector : 1. ColumnVector should be declared as implementing AutoCloseable - it already has close() method 2. In OnHeapColumnVector#reserveInternal(), we only need to allocate new array when existing array is null or the length of existing array is shorter than the newCapacity. ## How was this patch tested? Existing unit tests. You can merge this pull request into a Git repository by running: $ git pull https://github.com/tedyu/spark master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/12225.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #12225 ---- commit f58c682f5c22ff935d87a7aedcc6ba44da7f5a4d Author: tedyu <yuzhih...@gmail.com> Date: 2016-04-07T01:10:45Z SPARK-14448 Improvements to ColumnVector ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org