mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 20:25:12 +00:00
[improvement][headless]Set default query limits of DataSet.
This commit is contained in:
@@ -33,9 +33,8 @@ public abstract class DetailSemanticQuery extends RuleSemanticQuery {
|
||||
super.fillParseInfo(chatQueryContext);
|
||||
|
||||
parseInfo.setQueryType(QueryType.DETAIL);
|
||||
if (Objects.isNull(parseInfo.getLimit())) {
|
||||
parseInfo.setLimit(parseInfo.getDetailLimit());
|
||||
}
|
||||
parseInfo.setLimit(parseInfo.getDetailLimit());
|
||||
|
||||
if (!needFillDateConf(chatQueryContext)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -34,9 +34,7 @@ public abstract class MetricSemanticQuery extends RuleSemanticQuery {
|
||||
@Override
|
||||
public void fillParseInfo(ChatQueryContext chatQueryContext) {
|
||||
super.fillParseInfo(chatQueryContext);
|
||||
if (Objects.isNull(parseInfo.getLimit())) {
|
||||
parseInfo.setLimit(parseInfo.getMetricLimit());
|
||||
}
|
||||
parseInfo.setLimit(parseInfo.getMetricLimit());
|
||||
fillDateInfo(chatQueryContext);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user