Github user JoshRosen commented on the pull request:

    https://github.com/apache/spark/pull/1623#issuecomment-51021399
  
    Here's another (contrived) example that breaks:
    
    ```python
    from collections import namedtuple as nt
    from pyspark import SparkContext
    from pyspark.serializers import PickleSerializer
    
    sc = SparkContext("local")
    p = PickleSerializer()
    
    Person = nt("Person", 'id firstName lastName')
    jon = Person(1, "Jon", "Doe")
    sc.textFile("/usr/share/dict/words").map(lambda x: jon).first()
    ```
    
    It looks like the problem here is that line 306 assumes that old references 
will be named `namedtuple`, which isn't true if I import it under a different 
name.


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