Skip to content

Commit

Permalink
Add missing :
Browse files Browse the repository at this point in the history
  • Loading branch information
zero323 committed May 2, 2017
1 parent e8615c2 commit 18c0253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/pyspark/sql/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def registerFunction(self, name, f, returnType=StringType()):
:param name: name of the UDF
:param f: python function
:param returnType: a :class:`pyspark.sql.types.DataType` object
:return a wrapped :class:`UserDefinedFunction`
:return: a wrapped :class:`UserDefinedFunction`
>>> strlen = spark.catalog.registerFunction("stringLengthString", len)
>>> spark.sql("SELECT stringLengthString('test')").collect()
Expand Down
2 changes: 1 addition & 1 deletion python/pyspark/sql/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def registerFunction(self, name, f, returnType=StringType()):
:param name: name of the UDF
:param f: python function
:param returnType: a :class:`pyspark.sql.types.DataType` object
:return a wrapped :class:`UserDefinedFunction`
:return: a wrapped :class:`UserDefinedFunction`
>>> strlen = sqlContext.registerFunction("stringLengthString", lambda x: len(x))
>>> sqlContext.sql("SELECT stringLengthString('test')").collect()
Expand Down

0 comments on commit 18c0253

Please sign in to comment.