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


##########
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:
   I investigated this a little. What I discovered is that adding support for 
this APIs will require more work. Maybe we can do this incrementally in future 
patches?



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