diff options
author | Herman van Hovell <hvanhovell@questtec.nl> | 2016-01-04 12:41:57 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2016-01-04 12:41:57 -0800 |
commit | 0171b71e9511cef512e96a759e407207037f3c49 (patch) | |
tree | 320a7ee7e2e4e37d3a75351d5be85ea4dd366be7 /mllib/src/main | |
parent | 40d03960d79debdff5cef21997417c4f8a8ce2e9 (diff) | |
download | spark-0171b71e9511cef512e96a759e407207037f3c49.tar.gz spark-0171b71e9511cef512e96a759e407207037f3c49.tar.bz2 spark-0171b71e9511cef512e96a759e407207037f3c49.zip |
[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``` (returned by calling ```toSeq```) 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).
Author: Herman van Hovell <hvanhovell@questtec.nl>
Closes #10553 from hvanhovell/SPARK-12421.
Diffstat (limited to 'mllib/src/main')
0 files changed, 0 insertions, 0 deletions