HyukjinKwon commented on code in PR #46122:
URL: https://github.com/apache/spark/pull/46122#discussion_r1571540998
##########
python/pyspark/sql/types.py:
##########
@@ -1521,6 +1521,18 @@ def toPython(self) -> Any:
"""
return VariantUtils.to_python(self.value, self.metadata)
+ def toJson(self, zone_id: str = "UTC") -> Any:
+ """
+ Convert the VariantVal to a JSON string. The zone ID represents the
time zone that the
+ timestamp should be printed in. It is defaulted to UTC. The list of
valid zone IDs can be
+ found here:
+ https://gist.github.com/heyalexej/8bf688fd67d7199be4a1682b3eec7568
Review Comment:
Let's add a new line here otherwise the sphunx format is broken. Also the
http link should better be like:
```
`here < https://gist.github.com/heyalexej/8bf688fd67d7199be4a1682b3eec7568
>`_
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]