desmondcheongzx commented on code in PR #45131:
URL: https://github.com/apache/spark/pull/45131#discussion_r1496454814


##########
python/pyspark/sql/types.py:
##########
@@ -2384,6 +2408,14 @@ def verify_struct(obj: Any) -> None:
 
         verify_value = verify_struct
 
+    elif isinstance(dataType, VariantType):
+
+        def verify_variant(obj: Any) -> None:
+            # The variant data type can take in any type.
+            pass
+
+        verify_value = verify_variant

Review Comment:
   Yeah, I was on the fence for adding these tests because we need to add 
additional python support for variant expressions (i.e. `parse_json` which 
turns strings into variant data types). Happy to add this support then add 
these test cases



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