We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bba10c commit 05bd1e4Copy full SHA for 05bd1e4
sql/core/src/main/scala/org/apache/spark/sql/SchemaRDD.scala
@@ -428,7 +428,8 @@ class SchemaRDD(
428
*/
429
private def applySchema(rdd: RDD[Row]): SchemaRDD = {
430
new SchemaRDD(sqlContext,
431
- SparkLogicalPlan(ExistingRdd(queryExecution.analyzed.output, rdd))(sqlContext))
+ SparkLogicalPlan(
432
+ ExistingRdd(queryExecution.analyzed.output.map(_.newInstance), rdd))(sqlContext))
433
}
434
435
// =======================================================================
0 commit comments