Skip to content

Commit

Permalink
clead code
Browse files Browse the repository at this point in the history
  • Loading branch information
wtt40122 committed Nov 15, 2023
1 parent ed416c9 commit feb7f8d
Showing 1 changed file with 0 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,46 +302,6 @@ private String buildQuerySql(LogQuery logQuery, MilogLogStoreDO milogLogstoreDO)
milogLogstoreDO.getEsIndex(), sqlPrefix, logQuery.getFullTextSearch(), sortSql, limitSql);
}

public String transferColumnTypeFromDorisToJava(String columnType) {
if (columnType == null) {
return "";
}

if (columnType.startsWith("varchar")) {
return "java.lang.String";
}

if (columnType.startsWith("int")) {
return "java.lang.Integer";
}

if (columnType.startsWith("bigint")) {
return "java.lang.Long";
}

if (columnType.startsWith("decimal")) {
return "java.math.BigDecimal";
}

if (columnType.startsWith("date")) {
return "java.util.Date";
}

if (columnType.startsWith("tinyint")) {
return "java.lang.Byte";
}

if (columnType.startsWith("smallint")) {
return "java.lang.Short";
}

if (columnType.startsWith("tinyint(0)") || columnType.startsWith("tinyint(1)")) {
return "java.lang.Boolean";
}

return "";
}

private SearchSourceBuilder assembleSearchSourceBuilder(LogQuery logQuery, List<String> keyList, BoolQueryBuilder boolQueryBuilder) {
SearchSourceBuilder builder = new SearchSourceBuilder();
builder.query(boolQueryBuilder);
Expand Down

0 comments on commit feb7f8d

Please sign in to comment.