spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davies <...@git.apache.org>
Subject [GitHub] spark pull request #15026: [SPARK-17472] [PYSPARK] Better error message for ...
Date Mon, 12 Sep 2016 18:53:51 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message