harshmotw-db commented on code in PR #46122: URL: https://github.com/apache/spark/pull/46122#discussion_r1571554473
########## 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: Thanks! Fixed -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org