Skip to content

Commit 4dbd316

Browse files
squitoliancheng
authored andcommitted
[SPARK-12560][SQL] SqlTestUtils.stripSparkFilter needs to copy utf8strings
See https://issues.apache.org/jira/browse/SPARK-12560 This isn't causing any problems currently because the tests for string predicate pushdown are currently disabled. I ran into this while trying to turn them back on with a different version of parquet. Figure it was good to fix now in any case. Author: Imran Rashid <[email protected]> Closes #10510 from squito/SPARK-12560.
1 parent b72e01e commit 4dbd316

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)