Skip to content

Commit

Permalink
[fix](tvf) parse date type error
Browse files Browse the repository at this point in the history
  • Loading branch information
0130w committed Sep 21, 2024
1 parent 8875d27 commit 0c874c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 0c874c6

Please sign in to comment.