Skip to content

Commit

Permalink
[SQL] [MINOR] [DOC] Clarify docs for inferring DataFrame from RDD of …
Browse files Browse the repository at this point in the history
…Products

 * Makes `SQLImplicits.rddToDataFrameHolder` scaladoc consistent with `SQLContext.createDataFrame[A <: Product](rdd: RDD[A])` since the former is essentially a wrapper for the latter
 * Clarifies `createDataFrame[A <: Product]` scaladoc to apply for any `RDD[Product]`, not just case classes

Author: Feynman Liang <fliang@databricks.com>

Closes #8406 from feynmanliang/sql-doc-fixes.

(cherry picked from commit 642c43c)
Signed-off-by: Reynold Xin <rxin@databricks.com>
  • Loading branch information
Feynman Liang authored and rxin committed Aug 25, 2015
1 parent ec5d09c commit 2f7e4b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class SQLContext(@transient val sparkContext: SparkContext)

/**
* :: Experimental ::
* Creates a DataFrame from an RDD of case classes.
* Creates a DataFrame from an RDD of Product (e.g. case classes, tuples).
*
* @group dataframes
* @since 1.3.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private[sql] abstract class SQLImplicits {
implicit def symbolToColumn(s: Symbol): ColumnName = new ColumnName(s.name)

/**
* Creates a DataFrame from an RDD of case classes or tuples.
* Creates a DataFrame from an RDD of Product (e.g. case classes, tuples).
* @since 1.3.0
*/
implicit def rddToDataFrameHolder[A <: Product : TypeTag](rdd: RDD[A]): DataFrameHolder = {
Expand Down

0 comments on commit 2f7e4b4

Please sign in to comment.