You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-52352][PYTHON][DOCS] Update pyspark.sql.functions.to_json docstring to include VariantType as valid input
### 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
Closesapache#51064 from austinrwarner/SPARK-52352.
Authored-by: Austin Warner <austin.richard.warner@gmail.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
0 commit comments