Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/3217#discussion_r20391569
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Row.scala
---
@@ -215,9 +223,11 @@ class GenericRow(protected[sql] val values:
Array[Any]) extends Row {
def copy() = this
}
-class GenericMutableRow(size: Int) extends GenericRow(size) with
MutableRow {
+class GenericMutableRow(v: Array[Any]) extends GenericRow(v) with
MutableRow {
/** No-arg constructor for serialization. */
- def this() = this(0)
+ def this() = this(null)
+
+ def this(size: Int) = this(new Array[Any](size))
--- End diff --
This seems like a totally reasonable change if you want to pull this into
another PR so I can commit it right away (optional if you want to finish the
discussion above).
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]