Skip to content
Snippets Groups Projects
Commit 199a9e80 authored by Cheng Lian's avatar Cheng Lian
Browse files

[Minor] [SQL] Renames stringRddToDataFrame to stringRddToDataFrameHolder for consistency

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/apache/spark/4613)
<!-- Reviewable:end -->

Author: Cheng Lian <lian@databricks.com>

Closes #4613 from liancheng/df-implicit-rename and squashes the following commits:

db8bdd3 [Cheng Lian] Renames stringRddToDataFrame to stringRddToDataFrameHolder for consistency
parent d51d6ba1
No related branches found
No related tags found
No related merge requests found
......@@ -235,7 +235,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
}
/** Creates a single column DataFrame from an RDD[String]. */
implicit def stringRddToDataFrame(data: RDD[String]): DataFrameHolder = {
implicit def stringRddToDataFrameHolder(data: RDD[String]): DataFrameHolder = {
val dataType = StringType
val rows = data.mapPartitions { iter =>
val row = new SpecificMutableRow(dataType :: Nil)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment