You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Austin Warner (Jira)" <ji...@apache.org> on 2025/05/30 16:06:00 UTC

[jira] [Commented] (SPARK-52352) pyspark.sql.functions.to_json should mention Variant as valid type

    [ https://issues.apache.org/jira/browse/SPARK-52352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17955263#comment-17955263 ] 

Austin Warner commented on SPARK-52352:
---------------------------------------

I am starting a PR for this now

> pyspark.sql.functions.to_json should mention Variant as valid type
> ------------------------------------------------------------------
>
>                 Key: SPARK-52352
>                 URL: https://issues.apache.org/jira/browse/SPARK-52352
>             Project: Spark
>          Issue Type: Documentation
>          Components: PySpark
>    Affects Versions: 4.0.0
>            Reporter: Austin Warner
>            Priority: Minor
>
> The docstring for {{pyspark.sql.functions.to_json}} has not been updated in 4.0.0 to include {{Variant}} as as valid input type. An update should probably include a reference to {{VariantType}} in the summary line, as well as an example showing a {{VariantType}} being cast to JSON.



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

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