Commit 2ab68d1
[SPARK-54859][PYTHON] Arrow by default PySpark UDF API reference doc
### What changes were proposed in this pull request?
Add doc about arrow by default enablement in Spark 4.2, for this page: https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.udf.html
Also add an example specifying how to opt out of arrow optimization, on a per-UDF and per-session level.
### Why are the changes needed?
In Spark 4.2.0, we will enable arrow-optimization for Python UD(T)Fs by default. (see: [SPARK-54555](https://issues.apache.org/jira/browse/SPARK-54555)). Docs should be updated to note the change and include more code examples.
### Does this PR introduce _any_ user-facing change?
No, this is a documentation-only update.
### How was this patch tested?
Docs build tests
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #53632 from asl3/pyspark-apiref-arrowudfdoc.
Authored-by: Amanda Liu <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>1 parent 2fb3359 commit 2ab68d1
1 file changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28927 | 28927 | | |
28928 | 28928 | | |
28929 | 28929 | | |
| 28930 | + | |
| 28931 | + | |
| 28932 | + | |
28930 | 28933 | | |
28931 | 28934 | | |
28932 | 28935 | | |
| |||
29029 | 29032 | | |
29030 | 29033 | | |
29031 | 29034 | | |
| 29035 | + | |
| 29036 | + | |
| 29037 | + | |
| 29038 | + | |
| 29039 | + | |
| 29040 | + | |
| 29041 | + | |
| 29042 | + | |
| 29043 | + | |
| 29044 | + | |
| 29045 | + | |
| 29046 | + | |
| 29047 | + | |
| 29048 | + | |
| 29049 | + | |
| 29050 | + | |
| 29051 | + | |
| 29052 | + | |
| 29053 | + | |
| 29054 | + | |
| 29055 | + | |
| 29056 | + | |
29032 | 29057 | | |
29033 | 29058 | | |
29034 | 29059 | | |
| |||
0 commit comments