This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new cf717882d8 [fix](jdbc catalog) fix hana jdbc table bug (#22190)
cf717882d8 is described below
commit cf717882d826185a4ae9412b6b6a08e2695083c6
Author: zy-kkk <[email protected]>
AuthorDate: Wed Jul 26 08:45:06 2023 +0800
[fix](jdbc catalog) fix hana jdbc table bug (#22190)
---
fe/fe-core/src/main/java/org/apache/doris/catalog/JdbcTable.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/JdbcTable.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/JdbcTable.java
index 33f5454ffd..06a055ebce 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/JdbcTable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/JdbcTable.java
@@ -312,7 +312,8 @@ public class JdbcTable extends Table {
String urlType = jdbcUrl.split(":")[1];
if (!jdbcTypeName.equalsIgnoreCase(urlType)) {
- if (!(jdbcTypeName.equalsIgnoreCase("oceanbase_oracle") &&
urlType.equalsIgnoreCase("oceanbase"))) {
+ if (!(jdbcTypeName.equalsIgnoreCase("oceanbase_oracle") &&
urlType.equalsIgnoreCase("oceanbase"))
+ && !(jdbcTypeName.equalsIgnoreCase("sap_hana") &&
urlType.equalsIgnoreCase("sap"))) {
throw new DdlException("property " + TABLE_TYPE + " must be
same with resource url");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]