Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12251#discussion_r60256563
  
    --- Diff: python/pyspark/sql/types.py ---
    @@ -507,20 +512,54 @@ def add(self, field, data_type=None, nullable=True, 
metadata=None):
                 else:
                     data_type_f = data_type
                 self.fields.append(StructField(field, data_type_f, nullable, 
metadata))
    -            self.names.append(field)
    -        self._needSerializeAnyField = any(f.needConversion() for f in 
self.fields)
    --- End diff --
    
    This is used when unpickle, it's better to cache it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to