diff --git a/databend-jdbc/src/main/java/com/databend/jdbc/PresignContext.java b/databend-jdbc/src/main/java/com/databend/jdbc/PresignContext.java index 9d884c2e..071a58cf 100644 --- a/databend-jdbc/src/main/java/com/databend/jdbc/PresignContext.java +++ b/databend-jdbc/src/main/java/com/databend/jdbc/PresignContext.java @@ -60,14 +60,7 @@ public static PresignContext getPresignContext(DatabendConnection connection, Pr throw new SQLException("Failed to get presign url"); } } catch (Throwable e) { - try { - statement.close(); - } catch (Throwable closeException) { - if (closeException != e) { - e.addSuppressed(closeException); - } - } - throw e; + throw new SQLException("Failed to do presign"); } finally { statement.close(); }