diff --git a/backend/src/main/java/io/dataease/provider/ProviderFactory.java b/backend/src/main/java/io/dataease/provider/ProviderFactory.java index 76b38d89dd..6a5a12de4f 100644 --- a/backend/src/main/java/io/dataease/provider/ProviderFactory.java +++ b/backend/src/main/java/io/dataease/provider/ProviderFactory.java @@ -66,10 +66,11 @@ public class ProviderFactory implements ApplicationContextAware { switch (type) { case "mysql": case "mariadb": + return context.getBean("mysqlQueryProvider", QueryProvider.class); case "ds_doris": case "TiDB": case "StarRocks": - return context.getBean("mysqlQueryProvider", QueryProvider.class); + return context.getBean("dorisQueryProvider", QueryProvider.class); default: return SpringContextUtil.getApplicationContext().getBean(type + "QueryProvider", QueryProvider.class); } diff --git a/backend/src/main/java/io/dataease/provider/query/doris/DorisQueryProvider.java b/backend/src/main/java/io/dataease/provider/query/doris/DorisQueryProvider.java new file mode 100644 index 0000000000..c051fbdda4 --- /dev/null +++ b/backend/src/main/java/io/dataease/provider/query/doris/DorisQueryProvider.java @@ -0,0 +1,11 @@ +package io.dataease.provider.query.doris; + +import io.dataease.provider.query.mysql.MysqlQueryProvider; +import org.springframework.stereotype.Service; + + + +@Service("dorisQueryProvider") +public class DorisQueryProvider extends MysqlQueryProvider { + +}