tbcs commented on a change in pull request #24448: [SPARK-23299][SQL][PYSPARK] 
Fix __repr__ behaviour for Rows
URL: https://github.com/apache/spark/pull/24448#discussion_r279121166
 
 

 ##########
 File path: python/pyspark/sql/types.py
 ##########
 @@ -1549,7 +1549,7 @@ def __repr__(self):
             return "Row(%s)" % ", ".join("%s=%r" % (k, v)
                                          for k, v in zip(self.__fields__, 
tuple(self)))
         else:
-            return "<Row(%s)>" % ", ".join(self)
+            return "<Row(%s)>" % ", ".join("%s" % (fields) for fields in self)
 
 Review comment:
   I applied the suggested change.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to