Skip to content

Commit f5c9296

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. (cherry picked from commit 4158836) Signed-off-by: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
1 parent 7cbfef2 commit f5c9296

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
@@ -254,7 +254,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
254254
* Or, to use Java 8 lambda syntax:
255255
* {{{
256256
* sqlContext.udf().register("myUDF",
257-
* (Integer arg1, String arg2) -> arg2 + arg1),
257+
* (Integer arg1, String arg2) -> arg2 + arg1,
258258
* DataTypes.StringType);
259259
* }}}
260260
*

0 commit comments

Comments
 (0)