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


##########
python/pyspark/sql/tests/test_types.py:
##########
@@ -2240,6 +2240,11 @@ def test_variant_type(self):
             PySparkValueError, lambda: str(VariantVal(bytes([32, 10, 1, 0, 0, 
0]), metadata))
         )
 
+        # check parse_json
+        for key, json_str, obj in expected_values:
+            self.assertEqual(VariantVal.parseJson(json_str).toJson(), json_str)
+            self.assertEqual(VariantVal.parseJson(json_str).toPython(), obj)

Review Comment:
   Thanks! I added this test.



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