fix: 增加日志

This commit is contained in:
taojinlong
2025-09-10 17:50:08 +08:00
parent d5e2f204e4
commit 51ff0eefb3

View File

@@ -140,6 +140,7 @@ public abstract class Provider {
}
public String transSqlDialect(String sql, Map<Long, DatasourceSchemaDTO> dsMap) throws DEException {
logger.debug("calcite data preview sql: " + sql);
DatasourceSchemaDTO value = dsMap.entrySet().iterator().next().getValue();
try (ConnectionObj connection = getConnection(value)) {
// 获取数据库version
@@ -154,6 +155,7 @@ public abstract class Provider {
}
return dialect;
} catch (Exception e) {
e.printStackTrace();
DEException.throwException(e.getMessage());
}
return null;