gene-db commented on code in PR #46122:
URL: https://github.com/apache/spark/pull/46122#discussion_r1573029280


##########
python/pyspark/sql/types.py:
##########
@@ -1521,6 +1521,19 @@ def toPython(self) -> Any:
         """
         return VariantUtils.to_python(self.value, self.metadata)
 
+    def toJson(self, zone_id: str = "UTC") -> str:

Review Comment:
   You might need to update this 
https://github.com/databricks/runtime/blob/master/python/docs/source/reference/pyspark.sql/variant_val.rst?plain=1#L27
   to generate the docs.



-- 
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]

Reply via email to