mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-15 20:34:19 +08:00
[fix](headless)Use partition time field to load dimension values.
[fix](headless)Use partition time field to load dimension values.
This commit is contained in:
@@ -12,4 +12,6 @@ public class DictSingleTaskReq {
|
||||
private TypeEnums type;
|
||||
@NotNull
|
||||
private Long itemId;
|
||||
private String startDate;
|
||||
private String endDate;
|
||||
}
|
||||
|
||||
@@ -445,14 +445,18 @@ public class DictUtils {
|
||||
if (DateConf.DateMode.ALL.equals(config.getDateConf().getDateMode())) {
|
||||
return "";
|
||||
}
|
||||
|
||||
// 静态日期
|
||||
if (DateConf.DateMode.BETWEEN.equals(config.getDateConf().getDateMode())) {
|
||||
return String.format("( %s >= '%s' and %s <= '%s' )",
|
||||
config.getDateConf().getDateField(), config.getDateConf().getStartDate(),
|
||||
config.getDateConf().getDateField(), config.getDateConf().getEndDate());
|
||||
partitionTimeDimension.getBizName(), config.getDateConf().getStartDate(),
|
||||
partitionTimeDimension.getBizName(), config.getDateConf().getEndDate());
|
||||
}
|
||||
|
||||
// 动态日期
|
||||
if (DateConf.DateMode.RECENT.equals(config.getDateConf().getDateMode())) {
|
||||
dictItemResp.getConfig().getDateConf()
|
||||
.setDateField(partitionTimeDimension.getBizName());
|
||||
return generateDictDateFilterRecent(dictItemResp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user