Skip to content

Commit 63be026

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 #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 3541061) Signed-off-by: Reynold Xin <[email protected]>
1 parent 7c342bd commit 63be026

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)