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

    https://github.com/apache/spark/pull/15026#discussion_r78432383
  
    --- Diff: python/pyspark/cloudpickle.py ---
    @@ -109,6 +109,15 @@ def dump(self, obj):
                 if 'recursion' in e.args[0]:
                     msg = """Could not pickle object as excessively deep 
recursion required."""
                     raise pickle.PicklingError(msg)
    +        except pickle.PickleError:
    +            raise
    +        except Exception as e:
    +            if "'i' format requires" in e.message:
    +                msg = "Object too large to serialize: " + e.message
    +            else:
    +                msg = "Could not serialize object: " + 
e.__class__.__name__ + ": " + e.message
    +            raise pickle.PicklingError(msg)
    --- End diff --
    
    Same here


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to