forked from github/dataease
fix: 数据集支持 doris 视图
This commit is contained in:
parent
095a66f225
commit
d8457b90a4
@ -175,7 +175,13 @@ public class JdbcProvider extends DatasourceProvider {
|
|||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
DataEaseException.throwException(e);
|
DataEaseException.throwException(e);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
DataEaseException.throwException(Translator.get("i18n_datasource_connect_error") + e.getMessage());
|
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;
|
return list;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user