diff options
author | Cheng Hao <hao.cheng@intel.com> | 2016-03-16 11:20:15 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-03-16 11:20:15 -0700 |
commit | d9670f84739b0840501b19b8cb0e851850edb8c1 (patch) | |
tree | a664b7f0ca4e64b025408d770412dd8be8c07422 /mllib/src/test | |
parent | d9e8f26d0334f393e3b02d7a3b607be54a2a5efe (diff) | |
download | spark-d9670f84739b0840501b19b8cb0e851850edb8c1.tar.gz spark-d9670f84739b0840501b19b8cb0e851850edb8c1.tar.bz2 spark-d9670f84739b0840501b19b8cb0e851850edb8c1.zip |
[SPARK-13894][SQL] SqlContext.range return type from DataFrame to DataSet
## What changes were proposed in this pull request?
https://issues.apache.org/jira/browse/SPARK-13894
Change the return type of the `SQLContext.range` API from `DataFrame` to `Dataset`.
## How was this patch tested?
No additional unit test required.
Author: Cheng Hao <hao.cheng@intel.com>
Closes #11730 from chenghao-intel/range.
Diffstat (limited to 'mllib/src/test')
-rw-r--r-- | mllib/src/test/scala/org/apache/spark/ml/feature/StringIndexerSuite.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/test/scala/org/apache/spark/ml/feature/StringIndexerSuite.scala b/mllib/src/test/scala/org/apache/spark/ml/feature/StringIndexerSuite.scala index b9533f881d..d40e69dced 100644 --- a/mllib/src/test/scala/org/apache/spark/ml/feature/StringIndexerSuite.scala +++ b/mllib/src/test/scala/org/apache/spark/ml/feature/StringIndexerSuite.scala @@ -114,7 +114,7 @@ class StringIndexerSuite val indexerModel = new StringIndexerModel("indexer", Array("a", "b", "c")) .setInputCol("label") .setOutputCol("labelIndex") - val df = sqlContext.range(0L, 10L) + val df = sqlContext.range(0L, 10L).toDF() assert(indexerModel.transform(df).eq(df)) } |