Skip to content

Commit bfbb4fe

Browse files
committed
SQLTestUtils.stripSparkFilter must copy the row, as df.collect() would do
1 parent 43706bf commit bfbb4fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/test/SQLTestUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private[sql] trait SQLTestUtils
189189
.executedPlan.asInstanceOf[org.apache.spark.sql.execution.Filter]
190190
.child
191191
.execute()
192-
.map(row => Row.fromSeq(row.toSeq(schema)))
192+
.map(row => Row.fromSeq(row.copy().toSeq(schema)))
193193

194194
sqlContext.createDataFrame(childRDD, schema)
195195
}

0 commit comments

Comments
 (0)