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 56b13e5 commit e71c866Copy full SHA for e71c866
sql/core/src/main/scala/org/apache/spark/sql/sources/DataSourceStrategy.scala
@@ -309,7 +309,7 @@ private[sql] object DataSourceStrategy extends Strategy with Logging {
309
output: Seq[Attribute],
310
rdd: RDD[Row]): SparkPlan = {
311
val converted = if (relation.needConversion) {
312
- execution.RDDConversions.rowToRowRdd(rdd, relation.schema.map(_.dataType))
+ execution.RDDConversions.rowToRowRdd(rdd, output.map(_.dataType))
313
} else {
314
rdd
315
}
0 commit comments