Skip to content

Commit

Permalink
add mysql type
Browse files Browse the repository at this point in the history
  • Loading branch information
JNSimba committed Jan 17, 2024
1 parent 46de849 commit fca7904
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public class MysqlType {
private static final String LONGBLOB = "LONGBLOB";
private static final String JSON = "JSON";
private static final String ENUM = "ENUM";
private static final String SET = "SET";

public static String toDorisType(String type, Integer length, Integer scale) {
switch (type.toUpperCase()) {
Expand Down Expand Up @@ -164,6 +165,7 @@ public static String toDorisType(String type, Integer length, Integer scale) {
case LONGBLOB:
case BINARY:
case VARBINARY:
case SET:
return DorisType.STRING;
case JSON:
return DorisType.JSONB;
Expand Down

0 comments on commit fca7904

Please sign in to comment.