fix: impala 数据源

This commit is contained in:
taojinlong 2022-04-06 17:56:46 +08:00
parent 0d1de07443
commit 528014ed71

View File

@ -406,7 +406,7 @@ public class JdbcProvider extends DatasourceProvider {
} }
private Connection getConnectionFromPool(DatasourceRequest datasourceRequest) throws Exception { private Connection getConnectionFromPool(DatasourceRequest datasourceRequest) throws Exception {
if(datasourceRequest.getDatasource().getType().equalsIgnoreCase(DatasourceTypes.mongo.name())){ if(datasourceRequest.getDatasource().getType().equalsIgnoreCase(DatasourceTypes.mongo.name()) || datasourceRequest.getDatasource().getType().equalsIgnoreCase(DatasourceTypes.impala.name())){
return getConnection(datasourceRequest); return getConnection(datasourceRequest);
} }
DruidDataSource dataSource = jdbcConnection.get(datasourceRequest.getDatasource().getId()); DruidDataSource dataSource = jdbcConnection.get(datasourceRequest.getDatasource().getId());