You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2024/02/09 08:57:11 UTC
(doris) branch branch-1.2-lts updated: [fix](catalog)hive catalog do not support array type to avoid BE coredump or lose mysql connection (#25105)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new 63e273d367a [fix](catalog)hive catalog do not support array type to avoid BE coredump or lose mysql connection (#25105)
63e273d367a is described below
commit 63e273d367a25b56d6dd1d34254bf01ec4a76686
Author: huanghg1994 <51...@qq.com>
AuthorDate: Fri Feb 9 16:57:02 2024 +0800
[fix](catalog)hive catalog do not support array type to avoid BE coredump or lose mysql connection (#25105)
---
.../java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java
index 943ed1a5963..4caf35637e0 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java
@@ -698,10 +698,7 @@ public class HiveMetaStoreClientHelper {
break;
}
if (lowerCaseType.startsWith("array")) {
- if (lowerCaseType.indexOf("<") == 5 && lowerCaseType.lastIndexOf(">") == lowerCaseType.length() - 1) {
- Type innerType = hiveTypeToDorisType(lowerCaseType.substring(6, lowerCaseType.length() - 1));
- return ArrayType.create(innerType, true);
- }
+ return Type.UNSUPPORTED;
}
if (lowerCaseType.startsWith("char")) {
ScalarType type = ScalarType.createType(PrimitiveType.CHAR);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org