[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 <sarutak@oss.nttdata.co.jp>

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

46efbd7 [Kousuke Saruta] Removed wrong example

(cherry picked from commit 94e040d059)
Signed-off-by: Reynold Xin <rxin@databricks.com>
This commit is contained in:
Kousuke Saruta 2015-06-29 12:16:12 -07:00 committed by Reynold Xin
parent f7c200e6ac
commit da51cf58fc

View file

@ -633,7 +633,6 @@ class DataFrame private[sql](
* // The following are equivalent: * // The following are equivalent:
* peopleDf.filter($"age" > 15) * peopleDf.filter($"age" > 15)
* peopleDf.where($"age" > 15) * peopleDf.where($"age" > 15)
* peopleDf($"age" > 15)
* }}} * }}}
* @group dfops * @group dfops
* @since 1.3.0 * @since 1.3.0
@ -658,7 +657,6 @@ class DataFrame private[sql](
* // The following are equivalent: * // The following are equivalent:
* peopleDf.filter($"age" > 15) * peopleDf.filter($"age" > 15)
* peopleDf.where($"age" > 15) * peopleDf.where($"age" > 15)
* peopleDf($"age" > 15)
* }}} * }}}
* @group dfops * @group dfops
* @since 1.3.0 * @since 1.3.0