forked from github/dataease
fix: presto数据集 boolean类型的字段过滤,不能用0,1过滤
This commit is contained in:
parent
9ad092228f
commit
5acf436de9
@ -985,9 +985,12 @@ public class PrestoQueryProvider extends QueryProvider {
|
||||
if (field.getDeExtractType() == 1) {
|
||||
whereName = String.format(PrestoConstants.UNIX_TIMESTAMP, originName);
|
||||
}
|
||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 3 || field.getDeExtractType() == 4) {
|
||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 3) {
|
||||
whereName = originName;
|
||||
}
|
||||
if (field.getDeExtractType() == 4) {
|
||||
whereName = String.format(PrestoConstants.CAST, originName, "bigint");
|
||||
}
|
||||
} else {
|
||||
whereName = originName;
|
||||
}
|
||||
@ -1185,9 +1188,12 @@ public class PrestoQueryProvider extends QueryProvider {
|
||||
if (field.getDeExtractType() == 1) {
|
||||
whereName = String.format(PrestoConstants.UNIX_TIMESTAMP, originName);
|
||||
}
|
||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 3 || field.getDeExtractType() == 4) {
|
||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 3) {
|
||||
whereName = originName;
|
||||
}
|
||||
if (field.getDeExtractType() == 4) {
|
||||
whereName = String.format(PrestoConstants.CAST, originName, "bigint");
|
||||
}
|
||||
} else {
|
||||
whereName = originName;
|
||||
}
|
||||
@ -1284,9 +1290,12 @@ public class PrestoQueryProvider extends QueryProvider {
|
||||
if (field.getDeExtractType() == 1) {
|
||||
whereName = String.format(PrestoConstants.UNIX_TIMESTAMP, originName);
|
||||
}
|
||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 3 || field.getDeExtractType() == 4) {
|
||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 3) {
|
||||
whereName = originName;
|
||||
}
|
||||
if (field.getDeExtractType() == 4) {
|
||||
whereName = String.format(PrestoConstants.CAST, originName, "bigint");
|
||||
}
|
||||
} else {
|
||||
whereName = originName;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user