Skip to content

Commit 429ceec

Browse files
committed
fix: excel时间转文本,使用文本下拉框搜索失败
1 parent 86eafc4 commit 429ceec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/backend/src/main/java/io/dataease/provider/engine/doris/DorisQueryProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ public String createQuerySQL(String table, List<DatasetTableField> fields, boole
145145
if (f.getDeExtractType() == 1) {
146146
if (f.getDeType() == 2 || f.getDeType() == 3) {
147147
fieldName = String.format(DorisConstants.UNIX_TIMESTAMP, originField) + "*1000";
148+
} else if (f.getDeType().equals(DeTypeConstants.DE_STRING)) {
149+
fieldName = String.format(DorisConstants.CAST, originField, DorisConstants.VARCHAR);
148150
} else {
149151
fieldName = originField;
150152
}

0 commit comments

Comments
 (0)