cloud-fan commented on code in PR #49591:
URL: https://github.com/apache/spark/pull/49591#discussion_r1924679711


##########
python/pyspark/sql/types.py:
##########
@@ -1478,6 +1478,9 @@ def toInternal(self, obj: Tuple) -> Tuple:
         if obj is None:
             return
 
+        if isinstance(obj, VariantVal):
+            raise PySparkValueError("Rows cannot be of type VariantVal")

Review Comment:
   how do we forbid other non-row values like string/int?



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