Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove RDDConversions
  • Loading branch information
eatoncys committed Dec 10, 2018
commit 9758534ef28109df25d4ef9155c54f09ac58a45c
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,7 @@ case class DataSourceStrategy(conf: SQLConf) extends Strategy with Logging with
if (relation.relation.needConversion) {
val converters = RowEncoder(StructType.fromAttributes(output))
rdd.mapPartitions { iterator =>
iterator.map { r =>
converters.toRow(r)
}
iterator.map(converters.toRow)
}
} else {
rdd.asInstanceOf[RDD[InternalRow]]
Expand Down