spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From saru...@apache.org
Subject spark git commit: [DOCS] Fix minor wrong lambda expression example.
Date Thu, 02 Jul 2015 12:17:02 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-1.4 7cbfef23a -> f5c9296a6


[DOCS] Fix minor wrong lambda expression example.

It's a really minor issue but there is an example with wrong lambda-expression usage in `SQLContext.scala`
like as follows.

```
sqlContext.udf().register("myUDF",
       (Integer arg1, String arg2) -> arg2 + arg1),  <- We have an extra `)` here.
       DataTypes.StringType);
```

Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>

Closes #7187 from sarutak/fix-minor-wrong-lambda-expression and squashes the following commits:

a13196d [Kousuke Saruta] Fixed minor wrong lambda expression example.

(cherry picked from commit 41588365ad29408ccabd216b411e9c43f0053151)
Signed-off-by: Kousuke Saruta <sarutak@oss.nttdata.co.jp>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/f5c9296a
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/f5c9296a
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/f5c9296a

Branch: refs/heads/branch-1.4
Commit: f5c9296a6f5d9e048fcbbeee73a71b3ce9f1ee80
Parents: 7cbfef2
Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
Authored: Thu Jul 2 21:16:35 2015 +0900
Committer: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
Committed: Thu Jul 2 21:16:54 2015 +0900

----------------------------------------------------------------------
 sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/f5c9296a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
----------------------------------------------------------------------
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
index f08fb4f..bd3f690 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
@@ -254,7 +254,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
    * Or, to use Java 8 lambda syntax:
    * {{{
    *   sqlContext.udf().register("myUDF",
-   *       (Integer arg1, String arg2) -> arg2 + arg1),
+   *       (Integer arg1, String arg2) -> arg2 + arg1,
    *       DataTypes.StringType);
    * }}}
    *


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message