aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKousuke Saruta <sarutak@oss.nttdata.co.jp>2015-07-02 21:16:35 +0900
committerKousuke Saruta <sarutak@oss.nttdata.co.jp>2015-07-02 21:16:54 +0900
commitf5c9296a6f5d9e048fcbbeee73a71b3ce9f1ee80 (patch)
treef191bf0c34497cdaec4c719f8dc8e908a0b2445b
parent7cbfef23aa4fd57b9eaee12a120406d1cbb26ef3 (diff)
downloadspark-f5c9296a6f5d9e048fcbbeee73a71b3ce9f1ee80.tar.gz
spark-f5c9296a6f5d9e048fcbbeee73a71b3ce9f1ee80.tar.bz2
spark-f5c9296a6f5d9e048fcbbeee73a71b3ce9f1ee80.zip
[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>
-rw-r--r--sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala2
1 files changed, 1 insertions, 1 deletions
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 f08fb4fafe..bd3f6901c2 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);
* }}}
*