From e579923132a02574dfb41bc10ed8df82e5dc9130 Mon Sep 17 00:00:00 2001 From: "lorenz.thiede" Date: Fri, 22 Dec 2023 10:59:23 +0000 Subject: [PATCH] SNOW-983635 Print UnsatisfiedLinkError Description Testing --- .../java/org/apache/parquet/hadoop/BdecParquetWriter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/parquet/hadoop/BdecParquetWriter.java b/src/main/java/org/apache/parquet/hadoop/BdecParquetWriter.java index 6d07dfbdd..de047b4c7 100644 --- a/src/main/java/org/apache/parquet/hadoop/BdecParquetWriter.java +++ b/src/main/java/org/apache/parquet/hadoop/BdecParquetWriter.java @@ -114,9 +114,12 @@ public void writeRow(List row) { @Override public void close() throws IOException { try { - int test = Math.max(Math.max((int) ZstdOutputStreamNoFinalizer.recommendedCOutSize(), (int) ZstdInputStreamNoFinalizer.recommendedDInSize()), (int)ZstdInputStreamNoFinalizer.recommendedDOutSize()); + int test = Math.max(Math.max((int) ZstdOutputStreamNoFinalizer.recommendedCOutSize(), (int) ZstdInputStreamNoFinalizer.recommendedDInSize()), (int) ZstdInputStreamNoFinalizer.recommendedDOutSize()); System.out.println(test); writer.close(); + } catch (java.lang.UnsatisfiedLinkError e) { + System.out.println(e); + throw new IOException(e); } catch (InterruptedException e) { throw new IOException(e); } finally {