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:54 +0900 |
commit | f5c9296a6f5d9e048fcbbeee73a71b3ce9f1ee80 (patch) | |
tree | f191bf0c34497cdaec4c719f8dc8e908a0b2445b /sql | |
parent | 7cbfef23aa4fd57b9eaee12a120406d1cbb26ef3 (diff) | |
download | spark-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>
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 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); * }}} * |