aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorCheolsoo Park <cheolsoop@netflix.com>2015-07-08 15:18:24 -0700
committerReynold Xin <rxin@databricks.com>2015-07-08 15:18:24 -0700
commit00b265f12c0f0271b7036f831fee09b694908b29 (patch)
treec00a50a365f2cf3d1e3963c41d14ff4e728b0894 /sql
parent8f3cd93278337dc10b9dd3a344d6f7b51ba9960d (diff)
downloadspark-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
Diffstat (limited to 'sql')
-rw-r--r--sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala2
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