Skip to content

Commit 18c0253

Browse files
committed
Add missing :
1 parent e8615c2 commit 18c0253

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/pyspark/sql/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def registerFunction(self, name, f, returnType=StringType()):
237237
:param name: name of the UDF
238238
:param f: python function
239239
:param returnType: a :class:`pyspark.sql.types.DataType` object
240-
:return a wrapped :class:`UserDefinedFunction`
240+
:return: a wrapped :class:`UserDefinedFunction`
241241
242242
>>> strlen = spark.catalog.registerFunction("stringLengthString", len)
243243
>>> spark.sql("SELECT stringLengthString('test')").collect()

python/pyspark/sql/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def registerFunction(self, name, f, returnType=StringType()):
185185
:param name: name of the UDF
186186
:param f: python function
187187
:param returnType: a :class:`pyspark.sql.types.DataType` object
188-
:return a wrapped :class:`UserDefinedFunction`
188+
:return: a wrapped :class:`UserDefinedFunction`
189189
190190
>>> strlen = sqlContext.registerFunction("stringLengthString", lambda x: len(x))
191191
>>> sqlContext.sql("SELECT stringLengthString('test')").collect()

0 commit comments

Comments
 (0)