Skip to content

Commit

Permalink
[SQL][DOCS] Remove wrong example from DataFrame.scala
Browse files Browse the repository at this point in the history
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 <sarutak@oss.nttdata.co.jp>

Closes apache#6977 from sarutak/fix-dataframe-example and squashes the following commits:

46efbd7 [Kousuke Saruta] Removed wrong example
  • Loading branch information
sarutak authored and rxin committed Jun 29, 2015
1 parent 492dca3 commit 94e040d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,6 @@ class DataFrame private[sql](
* // The following are equivalent:
* peopleDf.filter($"age" > 15)
* peopleDf.where($"age" > 15)
* peopleDf($"age" > 15)
* }}}
* @group dfops
* @since 1.3.0
Expand All @@ -707,7 +706,6 @@ class DataFrame private[sql](
* // The following are equivalent:
* peopleDf.filter($"age" > 15)
* peopleDf.where($"age" > 15)
* peopleDf($"age" > 15)
* }}}
* @group dfops
* @since 1.3.0
Expand Down

0 comments on commit 94e040d

Please sign in to comment.