This is an automated email from the ASF dual-hosted git repository.

ruifengz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 4b88a559ec9 [MINOR][CONNECT][DOC] Add missing docstring for function 
`col`
4b88a559ec9 is described below

commit 4b88a559ec95fd8c395de090d7c75a0071a9ab94
Author: Ruifeng Zheng <[email protected]>
AuthorDate: Sat Dec 31 10:18:47 2022 +0800

    [MINOR][CONNECT][DOC] Add missing docstring for function `col`
    
    ### What changes were proposed in this pull request?
    Add missing doc for function `col`
    
    ### Why are the changes needed?
    the docstring is missing
    
    ### Does this PR introduce _any_ user-facing change?
    yes
    
    ### How was this patch tested?
    existing ut
    
    Closes #39310 from zhengruifeng/connect_function_col_doc.
    
    Lead-authored-by: Ruifeng Zheng <[email protected]>
    Co-authored-by: Hyukjin Kwon <[email protected]>
    Signed-off-by: Ruifeng Zheng <[email protected]>
---
 python/pyspark/sql/connect/functions.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/python/pyspark/sql/connect/functions.py 
b/python/pyspark/sql/connect/functions.py
index b7b78542bb8..8dd95b0c626 100644
--- a/python/pyspark/sql/connect/functions.py
+++ b/python/pyspark/sql/connect/functions.py
@@ -161,6 +161,9 @@ def col(col: str) -> Column:
     return Column(ColumnReference(col))
 
 
+col.__doc__ = pysparkfuncs.col.__doc__
+
+
 column = col
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to