Skip to content

Commit e7ef5f7

Browse files
committed
Fix typo in documentation for Java UDF registration
1 parent 6fec1a9 commit e7ef5f7

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)