Skip to content

Commit

Permalink
[INLONG-9204][Manager] Add field type for PostgreSQL (#9636)
Browse files Browse the repository at this point in the history
  • Loading branch information
haifxu authored Jan 31, 2024
1 parent 54d6dda commit e9aa6e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
public enum FieldType {

INT,
INTEGER,
TINYINT,
SMALLINT,
BIGINT,
Expand All @@ -35,6 +36,7 @@ public enum FieldType {
FIXED,
BYTE,
BINARY,
CHAR,
VARCHAR,
VARBINARY,
BOOLEAN,
Expand All @@ -44,6 +46,8 @@ public enum FieldType {
INT16,
INT32,
INT64,
FLOAT4,
FLOAT8,
FLOAT32,
FLOAT64,
DATETIME,
Expand All @@ -54,7 +58,9 @@ public enum FieldType {
MAP,
STRUCT,
FUNCTION,
KEYWORD;
KEYWORD,
LARGEINT,
JSON;

public static FieldType forName(String name) {
Preconditions.expectNotBlank(name, ErrorCodeEnum.INVALID_PARAMETER, "FieldType should not be null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ public static FormatInfo convertFieldFormat(String type, String format) {
formatInfo = new TimeFormatInfo();
}
break;
case TIMESTAMPTZ:
case TIMESTAMP:
case DATETIME:
if (StringUtils.isNotBlank(format)) {
Expand Down

0 comments on commit e9aa6e1

Please sign in to comment.