mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-19 21:14:25 +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;
|
private TypeEnums type;
|
||||||
@NotNull
|
@NotNull
|
||||||
private Long itemId;
|
private Long itemId;
|
||||||
|
private String startDate;
|
||||||
|
private String endDate;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -445,14 +445,18 @@ public class DictUtils {
|
|||||||
if (DateConf.DateMode.ALL.equals(config.getDateConf().getDateMode())) {
|
if (DateConf.DateMode.ALL.equals(config.getDateConf().getDateMode())) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// 静态日期
|
// 静态日期
|
||||||
if (DateConf.DateMode.BETWEEN.equals(config.getDateConf().getDateMode())) {
|
if (DateConf.DateMode.BETWEEN.equals(config.getDateConf().getDateMode())) {
|
||||||
return String.format("( %s >= '%s' and %s <= '%s' )",
|
return String.format("( %s >= '%s' and %s <= '%s' )",
|
||||||
config.getDateConf().getDateField(), config.getDateConf().getStartDate(),
|
partitionTimeDimension.getBizName(), config.getDateConf().getStartDate(),
|
||||||
config.getDateConf().getDateField(), config.getDateConf().getEndDate());
|
partitionTimeDimension.getBizName(), config.getDateConf().getEndDate());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 动态日期
|
// 动态日期
|
||||||
if (DateConf.DateMode.RECENT.equals(config.getDateConf().getDateMode())) {
|
if (DateConf.DateMode.RECENT.equals(config.getDateConf().getDateMode())) {
|
||||||
|
dictItemResp.getConfig().getDateConf()
|
||||||
|
.setDateField(partitionTimeDimension.getBizName());
|
||||||
return generateDictDateFilterRecent(dictItemResp);
|
return generateDictDateFilterRecent(dictItemResp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user