Skip to content

Commit e09e898

Browse files
committed
Fixed copy() method of GenericRow.
1 parent 1a3d0cd commit e09e898

File tree

1 file changed

+1
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/rows.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class GenericRow(protected[sql] val values: Array[Any]) extends Row {
201201

202202
override def toSeq: Seq[Any] = values.toSeq
203203

204-
override def copy(): Row = this
204+
override def copy(): Row = new GenericRow(values.clone())
205205
}
206206

207207
class GenericRowWithSchema(values: Array[Any], override val schema: StructType)

0 commit comments

Comments
 (0)