fix: 数据集支持 doris 视图

This commit is contained in:
taojinlong 2022-01-28 18:45:57 +08:00
parent 095a66f225
commit d8457b90a4

View File

@ -175,8 +175,14 @@ public class JdbcProvider extends DatasourceProvider {
} catch (SQLException e) {
DataEaseException.throwException(e);
} catch (Exception e) {
if(datasourceRequest.getDatasource().getType().equalsIgnoreCase("ds_doris")){
datasourceRequest.setQuery("select * from " + datasourceRequest.getTable());
return fetchResultField(datasourceRequest);
}else {
DataEaseException.throwException(Translator.get("i18n_datasource_connect_error") + e.getMessage());
}
}
return list;
}