From 53c5b9f45aac7e396f0fd8455c7db4c7d480473d Mon Sep 17 00:00:00 2001 From: wudi <676366545@qq.com> Date: Wed, 17 Jul 2024 15:03:11 +0800 Subject: [PATCH] update --- .../java/org/apache/doris/flink/catalog/DorisTypeMapper.java | 2 ++ .../java/org/apache/doris/flink/catalog/doris/DorisType.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/flink-doris-connector/src/main/java/org/apache/doris/flink/catalog/DorisTypeMapper.java b/flink-doris-connector/src/main/java/org/apache/doris/flink/catalog/DorisTypeMapper.java index a8e3d7d6d..bfca184ec 100644 --- a/flink-doris-connector/src/main/java/org/apache/doris/flink/catalog/DorisTypeMapper.java +++ b/flink-doris-connector/src/main/java/org/apache/doris/flink/catalog/DorisTypeMapper.java @@ -47,6 +47,7 @@ import static org.apache.doris.flink.catalog.doris.DorisType.ARRAY; import static org.apache.doris.flink.catalog.doris.DorisType.BIGINT; +import static org.apache.doris.flink.catalog.doris.DorisType.BIGINT_UNSIGNED; import static org.apache.doris.flink.catalog.doris.DorisType.BOOLEAN; import static org.apache.doris.flink.catalog.doris.DorisType.CHAR; import static org.apache.doris.flink.catalog.doris.DorisType.DATE; @@ -113,6 +114,7 @@ public static DataType toFlinkType( case VARCHAR: return DataTypes.VARCHAR(precision); case LARGEINT: + case BIGINT_UNSIGNED: case STRING: case JSONB: case JSON: diff --git a/flink-doris-connector/src/main/java/org/apache/doris/flink/catalog/doris/DorisType.java b/flink-doris-connector/src/main/java/org/apache/doris/flink/catalog/doris/DorisType.java index b2b3776c9..7bc9fd0b2 100644 --- a/flink-doris-connector/src/main/java/org/apache/doris/flink/catalog/doris/DorisType.java +++ b/flink-doris-connector/src/main/java/org/apache/doris/flink/catalog/doris/DorisType.java @@ -24,6 +24,8 @@ public class DorisType { public static final String INT = "INT"; public static final String BIGINT = "BIGINT"; public static final String LARGEINT = "LARGEINT"; + // largeint is bigint unsigned in information_schema.COLUMNS + public static final String BIGINT_UNSIGNED = "BIGINT UNSIGNED"; public static final String FLOAT = "FLOAT"; public static final String DOUBLE = "DOUBLE"; public static final String DECIMAL = "DECIMAL";