Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 3541061

Browse files
wisematthewrxin
authored andcommitted
[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 <[email protected]> Closes apache#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
1 parent bd11b01 commit 3541061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/sql-programming-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ sqlContext.udf.register("strLen", (s: String) => s.length())
19391939
<div data-lang="java" markdown="1">
19401940
{% highlight java %}
19411941

1942-
sqlContext.udf().register("strLen", (String s) -> { s.length(); });
1942+
sqlContext.udf().register("strLen", (String s) -> s.length(), DataTypes.IntegerType);
19431943

19441944
{% endhighlight %}
19451945
</div>

0 commit comments

Comments
 (0)