Skip to content
Snippets Groups Projects
Commit e5b89978 authored by Cheng Lian's avatar Cheng Lian
Browse files

[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.
parent 20dfd467
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment