NestDream commented on code in PR #59038:
URL: https://github.com/apache/spark/pull/59038#discussion_r4218987833


##########
python/pyspark/sql/types.py:
##########
@@ -2011,6 +2011,14 @@ def toInternal(self, obj: Tuple) -> Tuple:
                     for n, f, c in zip(self.names, self.fields, 
self._needConversion)
                 )
             elif isinstance(obj, (tuple, list)):
+                if len(obj) != len(self.fields):

Review Comment:
   Removed in da8f73e0af5. types.py is back to master (UDF results and state 
values untouched); the check now sits in createDataFrame's inferred-schema path 
behind verifySchema and only warns, so results don't change and the migration 
guide entry is gone as well.



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