Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
4.0.0
-
None
-
None
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.