Skip to content

Commit e71c866

Browse files
committed
Re-fix bug so that the tests pass again
1 parent 56b13e5 commit e71c866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/sources/DataSourceStrategy.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ private[sql] object DataSourceStrategy extends Strategy with Logging {
309309
output: Seq[Attribute],
310310
rdd: RDD[Row]): SparkPlan = {
311311
val converted = if (relation.needConversion) {
312-
execution.RDDConversions.rowToRowRdd(rdd, relation.schema.map(_.dataType))
312+
execution.RDDConversions.rowToRowRdd(rdd, output.map(_.dataType))
313313
} else {
314314
rdd
315315
}

0 commit comments

Comments
 (0)