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

    https://github.com/apache/spark/pull/7301#discussion_r34229412
  
    --- Diff: python/pyspark/sql/types.py ---
    @@ -71,6 +67,15 @@ def json(self):
                               separators=(',', ':'),
                               sort_keys=True)
     
    +    def needSerialization(self):
    --- End diff --
    
    I guess that this could also be a `@property` so that we can write things 
like `if any(fieldType.needsSerialization for f in fields)`, but I don't feel 
strongly about this.


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