From 0c874c64a8eb7697f5aa26b775dc17359264580e Mon Sep 17 00:00:00 2001 From: 0130w Date: Sun, 22 Sep 2024 02:43:29 +0800 Subject: [PATCH] [fix](tvf) parse date type error --- .../main/java/org/apache/doris/common/util/FileFormatUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/util/FileFormatUtils.java b/fe/fe-core/src/main/java/org/apache/doris/common/util/FileFormatUtils.java index 591eb031580dd1..c79647a9c36a8e 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/util/FileFormatUtils.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/util/FileFormatUtils.java @@ -104,7 +104,7 @@ private static Type parseType(String typeStr) throws AnalysisException { int scale = Integer.parseInt(matcher.group(2)); return ScalarType.createDecimalV3Type(precision, scale); } else if (typeStr.equals("date")) { - return ScalarType.DATE; + return ScalarType.createDateType(); } else if (typeStr.startsWith("timestamp")) { int scale = 0; if (!typeStr.equals("timestamp")) {