cloud-fan commented on code in PR #49450: URL: https://github.com/apache/spark/pull/49450#discussion_r1912799260
########## python/pyspark/sql/variant_utils.py: ########## @@ -140,6 +157,15 @@ def to_python(cls, value: bytes, metadata: bytes) -> str: """ return cls._to_python(value, metadata, 0) + @classmethod + def parse_json(cls, json_str: str) -> Tuple[bytes, bytes]: Review Comment: So we do need `VariantVal` as UDF needs to access/return it. But why do we need `VariantUtils` in Python? I may miss some context. -- 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