mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-01-22 19:11:17 +08:00
[improvement][headless]Rename METRIC query type enum to AGGREGATE.
This commit is contained in:
@@ -74,7 +74,7 @@ public class ParseInfoProcessor implements ResultProcessor {
|
||||
parseInfo.setMetrics(metrics);
|
||||
|
||||
// extract dimensions from S2SQL
|
||||
if (QueryType.METRIC.equals(parseInfo.getQueryType())) {
|
||||
if (QueryType.AGGREGATE.equals(parseInfo.getQueryType())) {
|
||||
List<String> groupByFields = SqlSelectHelper.getGroupByFields(s2SQL);
|
||||
List<String> groupByDimensions = filterDateField(dsSchema, groupByFields);
|
||||
parseInfo.setDimensions(
|
||||
|
||||
@@ -294,7 +294,7 @@ public class QueryReqConverter {
|
||||
boolean isAgg = AggOption.isAgg(aggOption);
|
||||
QueryType queryType = QueryType.DETAIL;
|
||||
if (isAgg) {
|
||||
queryType = QueryType.METRIC;
|
||||
queryType = QueryType.AGGREGATE;
|
||||
}
|
||||
return queryType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user