Skip to content

Commit

Permalink
[Improve](cdc) fix mysql type integer (#476)
Browse files Browse the repository at this point in the history
Co-authored-by: muchun.tang <muchun.tang@transsion.com>
  • Loading branch information
tmc9031 and muchun.tang authored Aug 23, 2024
1 parent 4d9b45a commit f108c3c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public class MysqlType {
private static final String INT = "INT";
private static final String INT_UNSIGNED = "INT UNSIGNED";
private static final String INT_UNSIGNED_ZEROFILL = "INT UNSIGNED ZEROFILL";
private static final String INTEGER = "INTEGER";
private static final String INTEGER_UNSIGNED = "INTEGER UNSIGNED";
private static final String INTEGER_UNSIGNED_ZEROFILL = "INTEGER UNSIGNED ZEROFILL";
private static final String BIGINT = "BIGINT";
private static final String SERIAL = "SERIAL";
private static final String BIGINT_UNSIGNED = "BIGINT UNSIGNED";
Expand Down Expand Up @@ -108,11 +111,14 @@ public static String toDorisType(String type, Integer length, Integer scale) {
case SMALLINT_UNSIGNED:
case SMALLINT_UNSIGNED_ZEROFILL:
case INT:
case INTEGER:
case MEDIUMINT:
case YEAR:
return DorisType.INT;
case INT_UNSIGNED:
case INT_UNSIGNED_ZEROFILL:
case INTEGER_UNSIGNED:
case INTEGER_UNSIGNED_ZEROFILL:
case MEDIUMINT_UNSIGNED:
case MEDIUMINT_UNSIGNED_ZEROFILL:
case BIGINT:
Expand Down

0 comments on commit f108c3c

Please sign in to comment.