diff options
author | Kousuke Saruta <sarutak@oss.nttdata.co.jp> | 2015-07-02 21:16:35 +0900 |
---|---|---|
committer | Kousuke Saruta <sarutak@oss.nttdata.co.jp> | 2015-07-02 21:16:35 +0900 |
commit | 41588365ad29408ccabd216b411e9c43f0053151 (patch) | |
tree | f236dab2b4d4de85a48e66de4b3f5d437c5aa2ee /sql | |
parent | 1b0c8e61040bf06213f9758f775679dcc41b0cce (diff) | |
download | spark-41588365ad29408ccabd216b411e9c43f0053151.tar.gz spark-41588365ad29408ccabd216b411e9c43f0053151.tar.bz2 spark-41588365ad29408ccabd216b411e9c43f0053151.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.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala | 2 |
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 fc14a77538..e81371e7b0 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 @@ -274,7 +274,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); * }}} * |