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

gurwls223 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 39528336b86 [MINOR][PYTHON][DOCS] Correct the type hint for `from_csv`
39528336b86 is described below

commit 39528336b8672aa544c06a97d95d04d5067c4707
Author: Ruifeng Zheng <ruife...@apache.org>
AuthorDate: Mon Dec 12 16:45:36 2022 +0900

    [MINOR][PYTHON][DOCS] Correct the type hint for `from_csv`
    
    ### What changes were proposed in this pull request?
    Correct the type hint for `from_csv`
    
    ### Why are the changes needed?
    `from_csv` actually does not support `StructType` for now
    
    
https://github.com/apache/spark/blob/master/python/pyspark/sql/functions.py#L8084-L8090
    
    ### Does this PR introduce _any_ user-facing change?
    the generated doc
    
    ### How was this patch tested?
    existing UT
    
    Closes #39030 from zhengruifeng/py_from_csv_schema.
    
    Authored-by: Ruifeng Zheng <ruife...@apache.org>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 python/pyspark/sql/functions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyspark/sql/functions.py b/python/pyspark/sql/functions.py
index 4d39424762b..de540c62499 100644
--- a/python/pyspark/sql/functions.py
+++ b/python/pyspark/sql/functions.py
@@ -8036,7 +8036,7 @@ def sequence(
 
 def from_csv(
     col: "ColumnOrName",
-    schema: Union[StructType, Column, str],
+    schema: Union[Column, str],
     options: Optional[Dict[str, str]] = None,
 ) -> Column:
     """


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to