fix: impala jdbc展示错误

This commit is contained in:
taojinlong 2024-06-21 18:31:04 +08:00
parent 13bcf02dd5
commit 6546696f98

View File

@ -393,7 +393,7 @@ public class CalciteProvider {
configuration = JsonUtil.parseObject(datasourceDTO.getConfiguration(), Impala.class); configuration = JsonUtil.parseObject(datasourceDTO.getConfiguration(), Impala.class);
if (StringUtils.isNotEmpty(configuration.getUrlType()) && configuration.getUrlType().equalsIgnoreCase("jdbcUrl")) { if (StringUtils.isNotEmpty(configuration.getUrlType()) && configuration.getUrlType().equalsIgnoreCase("jdbcUrl")) {
if (configuration.getJdbcUrl().contains("password=")) { if (configuration.getJdbcUrl().contains("password=")) {
String[] params = configuration.getJdbcUrl().split(";")[1].split("&"); String[] params = configuration.getJdbcUrl().split(";");
String pd = ""; String pd = "";
for (int i = 0; i < params.length; i++) { for (int i = 0; i < params.length; i++) {
if (params[i].contains("password=")) { if (params[i].contains("password=")) {