Skip to content
Snippets Groups Projects
Commit 00b265f1 authored by Cheolsoo Park's avatar Cheolsoo Park Committed by Reynold Xin
Browse files

[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
parent 8f3cd932
No related branches found
No related tags found
No related merge requests found
...@@ -1415,7 +1415,7 @@ class DataFrame private[sql]( ...@@ -1415,7 +1415,7 @@ class DataFrame private[sql](
* @group dfops * @group dfops
* @since 1.3.0 * @since 1.3.0
*/ */
override def distinct: DataFrame = dropDuplicates() override def distinct(): DataFrame = dropDuplicates()
/** /**
* @group basic * @group basic
......
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