fix: excel时间转文本,使用文本下拉框搜索失败

This commit is contained in:
taojinlong 2024-10-08 18:48:47 +08:00
parent 86eafc4d77
commit 429ceec506

View File

@ -145,6 +145,8 @@ public class DorisQueryProvider extends QueryProvider {
if (f.getDeExtractType() == 1) { if (f.getDeExtractType() == 1) {
if (f.getDeType() == 2 || f.getDeType() == 3) { if (f.getDeType() == 2 || f.getDeType() == 3) {
fieldName = String.format(DorisConstants.UNIX_TIMESTAMP, originField) + "*1000"; fieldName = String.format(DorisConstants.UNIX_TIMESTAMP, originField) + "*1000";
} else if (f.getDeType().equals(DeTypeConstants.DE_STRING)) {
fieldName = String.format(DorisConstants.CAST, originField, DorisConstants.VARCHAR);
} else { } else {
fieldName = originField; fieldName = originField;
} }