Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/8725#discussion_r39314762
--- Diff: core/src/main/scala/org/apache/spark/io/CompressionCodec.scala ---
@@ -148,7 +148,7 @@ class SnappyCompressionCodec(conf: SparkConf) extends
CompressionCodec {
try {
Snappy.getNativeLibraryVersion
} catch {
- case e: Error => throw new IllegalArgumentException
+ case e: Error => throw new IllegalArgumentException(e)
--- End diff --
Looks fine to me. I can see why just not catching the Error and letting it
fly works as well. For now, fine to just preserve the same behavior but chain
the cause.
---
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]