Skip to content

Commit 94e040d

Browse files
sarutakrxin
authored andcommitted
[SQL][DOCS] Remove wrong example from DataFrame.scala
In DataFrame.scala, there are examples like as follows. ``` * // The following are equivalent: * peopleDf.filter($"age" > 15) * peopleDf.where($"age" > 15) * peopleDf($"age" > 15) ``` But, I think the last example doesn't work. Author: Kousuke Saruta <[email protected]> Closes #6977 from sarutak/fix-dataframe-example and squashes the following commits: 46efbd7 [Kousuke Saruta] Removed wrong example
1 parent 492dca3 commit 94e040d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,6 @@ class DataFrame private[sql](
682682
* // The following are equivalent:
683683
* peopleDf.filter($"age" > 15)
684684
* peopleDf.where($"age" > 15)
685-
* peopleDf($"age" > 15)
686685
* }}}
687686
* @group dfops
688687
* @since 1.3.0
@@ -707,7 +706,6 @@ class DataFrame private[sql](
707706
* // The following are equivalent:
708707
* peopleDf.filter($"age" > 15)
709708
* peopleDf.where($"age" > 15)
710-
* peopleDf($"age" > 15)
711709
* }}}
712710
* @group dfops
713711
* @since 1.3.0

0 commit comments

Comments
 (0)