GitHub user hvanhovell opened a pull request: https://github.com/apache/spark/pull/10553
[SPARK-12421][SQL] Prevent Internal/External row from exposing state. It is currently possible to change the values of the supposedly immutable ```GenericRow``` and ```GenericInternalRow``` classes. This is caused by the fact that scala's ArrayOps ```toArray``` will return the backing array instead of a copy. This PR fixes this problem. This PR was inspired by https://github.com/apache/spark/pull/10374 by @apo1. cc @apo1 @sarutak @marmbrus @cloud-fan @nongli (everyone in the previous conversation). You can merge this pull request into a Git repository by running: $ git pull https://github.com/hvanhovell/spark SPARK-12421 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/10553.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 #10553 ---- commit 632b5dc202cce7ec7e2826018e06d120a4cd33d1 Author: Herman van Hovell <hvanhov...@questtec.nl> Date: 2016-01-02T11:34:05Z Prevent leaking state from internal/external row. ---- --- 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