Skip to content
Snippets Groups Projects
Commit 98e70458 authored by Cheng Hao's avatar Cheng Hao Committed by Imran Rashid
Browse files

[SPARK-6999] [SQL] Remove the infinite recursive method (useless)

Remove the method, since it causes infinite recursive calls. And seems it's a dummy method, since we have the API:
`def createDataFrame(rowRDD: JavaRDD[Row], schema: StructType): DataFrame`

Author: Cheng Hao <hao.cheng@intel.com>

Closes #5804 from chenghao-intel/spark_6999 and squashes the following commits:

63220a8 [Cheng Hao] remove the infinite recursive method (useless)
parent e6fb3771
No related branches found
No related tags found
No related merge requests found
......@@ -428,20 +428,6 @@ class SQLContext(@transient val sparkContext: SparkContext)
createDataFrame(rowRDD.rdd, schema)
}
/**
* Creates a [[DataFrame]] from an [[JavaRDD]] containing [[Row]]s by applying
* a seq of names of columns to this RDD, the data type for each column will
* be inferred by the first row.
*
* @param rowRDD an JavaRDD of Row
* @param columns names for each column
* @return DataFrame
* @group dataframes
*/
def createDataFrame(rowRDD: JavaRDD[Row], columns: java.util.List[String]): DataFrame = {
createDataFrame(rowRDD.rdd, columns.toSeq)
}
/**
* Applies a schema to an RDD of Java Beans.
*
......
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