aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wise <mwise@quixey.com>2015-05-27 22:39:19 -0700
committerReynold Xin <rxin@databricks.com>2015-05-27 22:39:24 -0700
commit63be026da3ebf6b77f37f2e950e3b8f516bdfcaa (patch)
treedcb400168f0a73e5826b5743f9507084445801bf
parent7c342bdd9377945337b1bf22344e50ac44d14986 (diff)
downloadspark-63be026da3ebf6b77f37f2e950e3b8f516bdfcaa.tar.gz
spark-63be026da3ebf6b77f37f2e950e3b8f516bdfcaa.tar.bz2
spark-63be026da3ebf6b77f37f2e950e3b8f516bdfcaa.zip
[DOCS] Fix typo in documentation for Java UDF registration
This contribution is my original work and I license the work to the project under the project's open source license Author: Matt Wise <mwise@quixey.com> Closes #6447 from wisematthew/fix-typo-in-java-udf-registration-doc and squashes the following commits: e7ef5f7 [Matt Wise] Fix typo in documentation for Java UDF registration (cherry picked from commit 35410614deb7feea1c9d5cca00a6fa7970404f21) Signed-off-by: Reynold Xin <rxin@databricks.com>
-rw-r--r--docs/sql-programming-guide.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index 5b41c0ee6e..ab646f65bb 100644
--- a/docs/sql-programming-guide.md
+++ b/docs/sql-programming-guide.md
@@ -1939,7 +1939,7 @@ sqlContext.udf.register("strLen", (s: String) => s.length())
<div data-lang="java" markdown="1">
{% highlight java %}
-sqlContext.udf().register("strLen", (String s) -> { s.length(); });
+sqlContext.udf().register("strLen", (String s) -> s.length(), DataTypes.IntegerType);
{% endhighlight %}
</div>