Skip to content

Commit 2482e6b

Browse files
committed
fix
1 parent 09a1b89 commit 2482e6b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/pyspark/sql/catalog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ def dropGlobalTempView(self, viewName):
227227
@ignore_unicode_prefix
228228
@since(2.0)
229229
def registerFunction(self, name, f, returnType=StringType()):
230-
"""Registers a Python function (including lambda function) or a wrapped/native UDF
231-
so it can be used in SQL statements.
230+
"""Registers a Python function (including lambda function) or a :class:`UserDefinedFunction`
231+
as a UDF. The registered UDF can be used in SQL statement.
232232
233233
In addition to a name and the function itself, the return type can be optionally specified.
234234
When the return type is not given it default to a string and conversion will automatically

python/pyspark/sql/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ def range(self, start, end=None, step=1, numPartitions=None):
175175
@ignore_unicode_prefix
176176
@since(1.2)
177177
def registerFunction(self, name, f, returnType=StringType()):
178-
"""Registers a Python function (including lambda function) or a wrapped/native UDF
179-
so it can be used in SQL statements.
178+
"""Registers a Python function (including lambda function) or a :class:`UserDefinedFunction`
179+
as a UDF. The registered UDF can be used in SQL statement.
180180
181181
In addition to a name and the function itself, the return type can be optionally specified.
182182
When the return type is not given it default to a string and conversion will automatically

0 commit comments

Comments
 (0)