Commit 47457cb
[SPARK-52352][PYTHON][DOCS] Update
### What changes were proposed in this pull request?
Updated the `pyspark.sql.functions.to_json` docstring to include `VariantType` as a valid input. This includes updates to the summary line, the `col` parameter description, and a new example.
### Why are the changes needed?
With the release of Spark 4.0, users of the new Variant Type will sometimes need to save out the JSON string representation when using PySpark. Before this change, the API docs flasely imply that `to_json` cannot be used for VariantType columns.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
No tests added (docs-only change)
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #51064 from austinrwarner/SPARK-52352.
Authored-by: Austin Warner <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>pyspark.sql.functions.to_json docstring to include VariantType as valid input1 parent d52b8e2 commit 47457cb
1 file changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20712 | 20712 | | |
20713 | 20713 | | |
20714 | 20714 | | |
20715 | | - | |
20716 | | - | |
| 20715 | + | |
| 20716 | + | |
20717 | 20717 | | |
20718 | 20718 | | |
20719 | 20719 | | |
| |||
20723 | 20723 | | |
20724 | 20724 | | |
20725 | 20725 | | |
20726 | | - | |
| 20726 | + | |
20727 | 20727 | | |
20728 | 20728 | | |
20729 | 20729 | | |
| |||
20777 | 20777 | | |
20778 | 20778 | | |
20779 | 20779 | | |
20780 | | - | |
| 20780 | + | |
| 20781 | + | |
| 20782 | + | |
| 20783 | + | |
| 20784 | + | |
| 20785 | + | |
| 20786 | + | |
| 20787 | + | |
| 20788 | + | |
| 20789 | + | |
| 20790 | + | |
| 20791 | + | |
20781 | 20792 | | |
20782 | 20793 | | |
20783 | 20794 | | |
| |||
20788 | 20799 | | |
20789 | 20800 | | |
20790 | 20801 | | |
20791 | | - | |
| 20802 | + | |
20792 | 20803 | | |
20793 | 20804 | | |
20794 | 20805 | | |
| |||
20799 | 20810 | | |
20800 | 20811 | | |
20801 | 20812 | | |
20802 | | - | |
| 20813 | + | |
20803 | 20814 | | |
20804 | 20815 | | |
20805 | 20816 | | |
| |||
0 commit comments