diff options
author | Josh Rosen <joshrosen@databricks.com> | 2014-10-24 15:06:15 -0700 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2014-10-24 15:06:15 -0700 |
commit | 6c98c29ae0033556fd4424f41d1de005c509e511 (patch) | |
tree | eeaae15f90955ef04a1794f7c966960bcdbbf3fd /sql/hive/src/test/resources/golden/union_remove_5-3-b12e5c70d6d29757471b900b6160fa8a | |
parent | 3a906c6631a914da8ede3111c63f89a0dac3f369 (diff) | |
download | spark-6c98c29ae0033556fd4424f41d1de005c509e511.tar.gz spark-6c98c29ae0033556fd4424f41d1de005c509e511.tar.bz2 spark-6c98c29ae0033556fd4424f41d1de005c509e511.zip |
[SPARK-4080] Only throw IOException from [write|read][Object|External]
If classes implementing Serializable or Externalizable interfaces throw
exceptions other than IOException or ClassNotFoundException from their
(de)serialization methods, then this results in an unhelpful
"IOException: unexpected exception type" rather than the actual exception that
produced the (de)serialization error.
This patch fixes this by adding a utility method that re-wraps any uncaught
exceptions in IOException (unless they are already instances of IOException).
Author: Josh Rosen <joshrosen@databricks.com>
Closes #2932 from JoshRosen/SPARK-4080 and squashes the following commits:
cd3a9be [Josh Rosen] [SPARK-4080] Only throw IOException from [write|read][Object|External].
Diffstat (limited to 'sql/hive/src/test/resources/golden/union_remove_5-3-b12e5c70d6d29757471b900b6160fa8a')
0 files changed, 0 insertions, 0 deletions