Skip to content

Commit 4158836

Browse files
committed
[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.
1 parent 1b0c8e6 commit 4158836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
274274
* Or, to use Java 8 lambda syntax:
275275
* {{{
276276
* sqlContext.udf().register("myUDF",
277-
* (Integer arg1, String arg2) -> arg2 + arg1),
277+
* (Integer arg1, String arg2) -> arg2 + arg1,
278278
* DataTypes.StringType);
279279
* }}}
280280
*

0 commit comments

Comments
 (0)