File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -215,9 +215,11 @@ class GenericRow(protected[sql] val values: Array[Any]) extends Row {
215
215
def copy () = this
216
216
}
217
217
218
- class GenericMutableRow (size : Int ) extends GenericRow (size ) with MutableRow {
218
+ class GenericMutableRow (v : Array [ Any ] ) extends GenericRow (v ) with MutableRow {
219
219
/** No-arg constructor for serialization. */
220
- def this () = this (0 )
220
+ def this () = this (null )
221
+
222
+ def this (size : Int ) = this (new Array [Any ](size))
221
223
222
224
override def setBoolean (ordinal : Int , value : Boolean ): Unit = { values(ordinal) = value }
223
225
override def setByte (ordinal : Int , value : Byte ): Unit = { values(ordinal) = value }
You can’t perform that action at this time.
0 commit comments