Skip to content

Commit 34c78f1

Browse files
committed
fix
1 parent 9ae546e commit 34c78f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/JdbcExternalCatalog.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ protected Map<String, String> processCompatibleProperties(Map<String, String> pr
162162
}
163163

164164
public String getDatabaseTypeName() {
165+
makeSureInitialized();
165166
return jdbcClient.getDbType();
166167
}
167168

@@ -227,7 +228,7 @@ public boolean isTestConnection() {
227228
@Override
228229
protected void initLocalObjectsImpl() {
229230
jdbcClient = createJdbcClient();
230-
this.functionRules = ExternalFunctionRules.create(getDatabaseTypeName(),
231+
this.functionRules = ExternalFunctionRules.create(jdbcClient.getDbType(),
231232
catalogProperty.getOrDefault(JdbcResource.FUNCTION_RULES, ""));
232233
}
233234

0 commit comments

Comments
 (0)