You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ca...@apache.org on 2025/12/26 03:24:16 UTC

(doris) 01/01: fix(column): fix add int and timestmap to fix unknown column issue

This is an automated email from the ASF dual-hosted git repository.

caiconghui pushed a commit to branch bugfix_hivetype
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 61e1bcf38ae9b2e8b9879d70f91cd3c1824e0779
Author: caiconghui1 <ca...@jd.com>
AuthorDate: Mon Jan 6 12:55:56 2025 +0800

    fix(column): fix add int and timestmap to fix unknown column issue
---
 .../apache/doris/datasource/hive/HiveMetaStoreClientHelper.java  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreClientHelper.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreClientHelper.java
index 5ca5c7f24cf..55fdab01529 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreClientHelper.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreClientHelper.java
@@ -717,6 +717,15 @@ public class HiveMetaStoreClientHelper {
             }
             return ScalarType.createDecimalV3Type(precision, scale);
         }
+        if (lowerCaseType.startsWith("bigint")) {
+            return Type.BIGINT;
+        }
+        if (lowerCaseType.startsWith("int")) {
+            return Type.INT;
+        }
+        if (lowerCaseType.startsWith("timestamp")) {
+            return ScalarType.createDatetimeV2Type(timeScale);
+        }
         return Type.UNSUPPORTED;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org