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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
