[ 
https://issues.apache.org/jira/browse/SPARK-44734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Allison Wang updated SPARK-44734:
---------------------------------
    Description: 
In addition to type mappings between Spark data types and Python data types 
(SPARK-44733), we should add the type casting rules for regular and 
arrow-optimized Python UDFs/UDTFs. 

We currently have this table in code:
 * Arrow: 
[https://github.com/apache/spark/blob/master/python/pyspark/sql/pandas/functions.py#L311-L329]
 * Python UDF: 
[https://github.com/apache/spark/blob/master/python/pyspark/sql/udf.py#L101-L116]

We should add a proper documentation page for the type casting rules. 

  was:
In addition to type mappings between Spark data types and Python data types, we 
should add the type casting rules for regular and arrow-optimized Python 
UDFs/UDTFs. 

We currently have this table in code:
 * Arrow: 
[https://github.com/apache/spark/blob/master/python/pyspark/sql/pandas/functions.py#L311-L329]
 * Python UDF: 
[https://github.com/apache/spark/blob/master/python/pyspark/sql/udf.py#L101-L116]

We should add a proper documentation page for the type casting rules. 


> Add documentation for type casting rules in Python UDFs/UDTFs
> -------------------------------------------------------------
>
>                 Key: SPARK-44734
>                 URL: https://issues.apache.org/jira/browse/SPARK-44734
>             Project: Spark
>          Issue Type: Sub-task
>          Components: PySpark
>    Affects Versions: 4.0.0
>            Reporter: Allison Wang
>            Priority: Major
>
> In addition to type mappings between Spark data types and Python data types 
> (SPARK-44733), we should add the type casting rules for regular and 
> arrow-optimized Python UDFs/UDTFs. 
> We currently have this table in code:
>  * Arrow: 
> [https://github.com/apache/spark/blob/master/python/pyspark/sql/pandas/functions.py#L311-L329]
>  * Python UDF: 
> [https://github.com/apache/spark/blob/master/python/pyspark/sql/udf.py#L101-L116]
> We should add a proper documentation page for the type casting rules. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to