diff options
author | Cheolsoo Park <cheolsoop@netflix.com> | 2015-07-08 15:18:24 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-07-08 15:18:24 -0700 |
commit | 00b265f12c0f0271b7036f831fee09b694908b29 (patch) | |
tree | c00a50a365f2cf3d1e3963c41d14ff4e728b0894 | |
parent | 8f3cd93278337dc10b9dd3a344d6f7b51ba9960d (diff) | |
download | spark-00b265f12c0f0271b7036f831fee09b694908b29.tar.gz spark-00b265f12c0f0271b7036f831fee09b694908b29.tar.bz2 spark-00b265f12c0f0271b7036f831fee09b694908b29.zip |
[SPARK-8908] [SQL] Add () to distinct definition in dataframe
Adding `()` to the definition of `distinct` in DataFrame allows distinct to be called with parentheses, which is consistent with `dropDuplicates`.
Author: Cheolsoo Park <cheolsoop@netflix.com>
Closes #7298 from piaozhexiu/SPARK-8908 and squashes the following commits:
7f0d923 [Cheolsoo Park] Add () to distinct definition in dataframe
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala b/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala index 60142291ea..f33e19a0cb 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala @@ -1415,7 +1415,7 @@ class DataFrame private[sql]( * @group dfops * @since 1.3.0 */ - override def distinct: DataFrame = dropDuplicates() + override def distinct(): DataFrame = dropDuplicates() /** * @group basic |