mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-06-25 22:29:22 +08:00
feat(db): 添加对 Hive 数据库引擎的支持
- 在 EngineType 枚举中添加 HIVE 类型定义
This commit is contained in:
@@ -14,7 +14,8 @@ public enum EngineType {
|
||||
KYUUBI(11, "KYUUBI"),
|
||||
PRESTO(12, "PRESTO"),
|
||||
TRINO(13, "TRINO"),
|
||||
ORACLE(14, "ORACLE");
|
||||
ORACLE(14, "ORACLE"),
|
||||
HIVE(15, "HIVE");
|
||||
|
||||
private Integer code;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ public class DbAdaptorFactory {
|
||||
dbAdaptorMap.put(EngineType.TRINO.getName(), new TrinoAdaptor());
|
||||
dbAdaptorMap.put(EngineType.ORACLE.getName(), new OracleAdaptor());
|
||||
dbAdaptorMap.put(EngineType.TDW.getName(), new DefaultDbAdaptor());
|
||||
dbAdaptorMap.put(EngineType.HIVE.getName(), new DefaultDbAdaptor());
|
||||
}
|
||||
|
||||
public static DbAdaptor getEngineAdaptor(String engineType) {
|
||||
|
||||
Reference in New Issue
Block a user