diff --git a/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java b/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java index 5cde1f35d3..7116ba8d12 100644 --- a/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java +++ b/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java @@ -174,7 +174,13 @@ public class CalciteProvider { } list = getDataResult(resultSet); } catch (Exception | AssertionError e) { - DEException.throwException(Translator.get("i18n_fetch_error") + e.getMessage()); + String msg; + if (e.getCause() != null && e.getCause().getCause() != null) { + msg = e.getMessage() + " [" + e.getCause().getCause().getMessage() + "]"; + } else { + msg = e.getMessage(); + } + DEException.throwException(Translator.get("i18n_fetch_error") + msg); } finally { try { if (resultSet != null) resultSet.close();