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 1530bc3f9cb75eaa4d131f5c3b50dfb9b9bc101b
Author: caiconghui1 <[email protected]>
AuthorDate: Mon Jan 6 12:55:56 2025 +0800

    fix(column): fix add int and timestmap to fix unknown column issue (#352)
---
 .../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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to