forked from github/dataease
feat: doris field type
This commit is contained in:
parent
787ef75b06
commit
f6a82359a7
@ -805,11 +805,13 @@ public class DorisQueryProvider extends QueryProvider {
|
|||||||
} else if (StringUtils.containsIgnoreCase(filterItemDTO.getTerm(), "like")) {
|
} else if (StringUtils.containsIgnoreCase(filterItemDTO.getTerm(), "like")) {
|
||||||
whereValue = "'%" + value + "%'";
|
whereValue = "'%" + value + "%'";
|
||||||
} else {
|
} else {
|
||||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 3 || field.getDeExtractType() == 4) {
|
// Doris field type test
|
||||||
|
/*if (field.getDeExtractType() == 2 || field.getDeExtractType() == 3 || field.getDeExtractType() == 4) {
|
||||||
whereValue = String.format(DorisConstants.WHERE_NUMBER_VALUE, value);
|
whereValue = String.format(DorisConstants.WHERE_NUMBER_VALUE, value);
|
||||||
} else {
|
} else {
|
||||||
whereValue = String.format(DorisConstants.WHERE_VALUE_VALUE, value);
|
whereValue = String.format(DorisConstants.WHERE_VALUE_VALUE, value);
|
||||||
}
|
}*/
|
||||||
|
whereValue = String.format(DorisConstants.WHERE_VALUE_VALUE, value);
|
||||||
}
|
}
|
||||||
list.add(SQLObj.builder()
|
list.add(SQLObj.builder()
|
||||||
.whereField(whereName)
|
.whereField(whereName)
|
||||||
@ -881,11 +883,13 @@ public class DorisQueryProvider extends QueryProvider {
|
|||||||
whereValue = String.format(DorisConstants.WHERE_BETWEEN, value.get(0), value.get(1));
|
whereValue = String.format(DorisConstants.WHERE_BETWEEN, value.get(0), value.get(1));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 3 || field.getDeExtractType() == 4) {
|
// doris field type test
|
||||||
|
/*if (field.getDeExtractType() == 2 || field.getDeExtractType() == 3 || field.getDeExtractType() == 4) {
|
||||||
whereValue = String.format(DorisConstants.WHERE_NUMBER_VALUE, value.get(0));
|
whereValue = String.format(DorisConstants.WHERE_NUMBER_VALUE, value.get(0));
|
||||||
} else {
|
} else {
|
||||||
whereValue = String.format(DorisConstants.WHERE_VALUE_VALUE, value.get(0));
|
whereValue = String.format(DorisConstants.WHERE_VALUE_VALUE, value.get(0));
|
||||||
}
|
}*/
|
||||||
|
whereValue = String.format(DorisConstants.WHERE_VALUE_VALUE, value.get(0));
|
||||||
}
|
}
|
||||||
list.add(SQLObj.builder()
|
list.add(SQLObj.builder()
|
||||||
.whereField(whereName)
|
.whereField(whereName)
|
||||||
|
Loading…
Reference in New Issue
Block a user