You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2015/06/29 21:16:15 UTC
spark git commit: [SQL][DOCS] Remove wrong example from
DataFrame.scala
Repository: spark
Updated Branches:
refs/heads/master 492dca3a7 -> 94e040d05
[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 <sa...@oss.nttdata.co.jp>
Closes #6977 from sarutak/fix-dataframe-example and squashes the following commits:
46efbd7 [Kousuke Saruta] Removed wrong example
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/94e040d0
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/94e040d0
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/94e040d0
Branch: refs/heads/master
Commit: 94e040d05996111b2b448bcdee1cda184c6d039b
Parents: 492dca3
Author: Kousuke Saruta <sa...@oss.nttdata.co.jp>
Authored: Mon Jun 29 12:16:12 2015 -0700
Committer: Reynold Xin <rx...@databricks.com>
Committed: Mon Jun 29 12:16:12 2015 -0700
----------------------------------------------------------------------
sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala | 2 --
1 file changed, 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/94e040d0/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala
----------------------------------------------------------------------
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 d75d883..986e591 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
@@ -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
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org