danielcweeks commented on code in PR #16611:
URL: https://github.com/apache/iceberg/pull/16611#discussion_r3460932831


##########
core/src/main/java/org/apache/iceberg/InternalData.java:
##########
@@ -65,9 +65,10 @@ private static void registerSupportedFormats() {
 
       registerParquet.invoke();
 
-    } catch (NoSuchMethodException e) {
+    } catch (NoSuchMethodException | NoClassDefFoundError | 
ExceptionInInitializerError e) {
       // failing to load Parquet is normal and does not require a stack trace
-      LOG.info("Unable to register Parquet for metadata files: {}", 
e.getMessage());
+      String message = e.getCause() != null ? e.getCause().getMessage() : 
e.getMessage();
+      LOG.info("Unable to register Parquet for metadata files: {}", message);

Review Comment:
   Same thing here.  I think we should include what exception was thrown.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to