diff options
author | Cheng Hao <hao.cheng@intel.com> | 2015-05-01 19:39:30 -0500 |
---|---|---|
committer | Imran Rashid <irashid@cloudera.com> | 2015-05-01 19:39:30 -0500 |
commit | 98e7045805282988da907793a844fa53d4c293c9 (patch) | |
tree | eb882b924f5c6a97ac0d4f6305149b3c1c632a03 /sql/core | |
parent | e6fb37712eb1762d8184edc897bf2d468db8d254 (diff) | |
download | spark-98e7045805282988da907793a844fa53d4c293c9.tar.gz spark-98e7045805282988da907793a844fa53d4c293c9.tar.bz2 spark-98e7045805282988da907793a844fa53d4c293c9.zip |
[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)
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala index bd4a55fa13..5116fcefd4 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala @@ -429,20 +429,6 @@ class SQLContext(@transient val sparkContext: SparkContext) } /** - * 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. * * WARNING: Since there is no guaranteed ordering for fields in a Java Bean, |