aboutsummaryrefslogtreecommitdiff
path: root/sql/core
diff options
context:
space:
mode:
authorCheng Lian <lian@databricks.com>2015-10-29 11:34:54 +0800
committerCheng Lian <lian@databricks.com>2015-10-29 11:34:54 +0800
commite5b89978edf7fa52090116b9b5b53ddaeef08beb (patch)
tree819e674734ead39817d0b2c99e979bd65610da5d /sql/core
parent20dfd46743401a528b70dfb7862e50ce9a3f8e02 (diff)
downloadspark-e5b89978edf7fa52090116b9b5b53ddaeef08beb.tar.gz
spark-e5b89978edf7fa52090116b9b5b53ddaeef08beb.tar.bz2
spark-e5b89978edf7fa52090116b9b5b53ddaeef08beb.zip
[SPARK-11376][SQL] Removes duplicated `mutableRow` field
This PR fixes a mistake in the code generated by `GenerateColumnAccessor`. Interestingly, although the code is illegal in Java (the class has two fields with the same name), Janino accepts it happily and accidentally works properly. Author: Cheng Lian <lian@databricks.com> Closes #9335 from liancheng/spark-11376.fix-generated-code.
Diffstat (limited to 'sql/core')
-rw-r--r--sql/core/src/main/scala/org/apache/spark/sql/columnar/GenerateColumnAccessor.scala2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/columnar/GenerateColumnAccessor.scala b/sql/core/src/main/scala/org/apache/spark/sql/columnar/GenerateColumnAccessor.scala
index d0f5bfa1cd..7980a6f36d 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/columnar/GenerateColumnAccessor.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/columnar/GenerateColumnAccessor.scala
@@ -140,7 +140,6 @@ object GenerateColumnAccessor extends CodeGenerator[Seq[DataType], ColumnarItera
private int numRowsInBatch = 0;
private scala.collection.Iterator input = null;
- private MutableRow mutableRow = null;
private DataType[] columnTypes = null;
private int[] columnIndexes = null;
@@ -156,7 +155,6 @@ object GenerateColumnAccessor extends CodeGenerator[Seq[DataType], ColumnarItera
public void initialize(Iterator input, DataType[] columnTypes, int[] columnIndexes) {
this.input = input;
- this.mutableRow = mutableRow;
this.columnTypes = columnTypes;
this.columnIndexes = columnIndexes;
}