diff --git a/databend-jdbc/src/main/java/com/databend/jdbc/DatabendConnection.java b/databend-jdbc/src/main/java/com/databend/jdbc/DatabendConnection.java index d61afc0f..7283717a 100644 --- a/databend-jdbc/src/main/java/com/databend/jdbc/DatabendConnection.java +++ b/databend-jdbc/src/main/java/com/databend/jdbc/DatabendConnection.java @@ -871,7 +871,6 @@ public void uploadStream(String stageName, String destPrefix, InputStream inputS } } catch (RuntimeException e) { System.out.println(e.getMessage()); - // For datax batch insert test, do not throw exception throw new SQLException(e); } catch (IOException e) { logger.warning("failed to upload input stream, file size is:" + fileSize / 1024.0 + e.getMessage()); 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 406b8c96..3f7d3bbf 100644 --- a/databend-jdbc/src/main/java/com/databend/jdbc/PresignContext.java +++ b/databend-jdbc/src/main/java/com/databend/jdbc/PresignContext.java @@ -60,7 +60,7 @@ public static PresignContext getPresignContext(DatabendConnection connection, Pr throw new SQLException("Failed to get presign url"); } } catch (Throwable e) { - throw new SQLException("Failed to do presign"); + throw new SQLException("Failed to do presign. Exception: " + e.toString(), e); } finally { statement.close(); }