mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-15 14:36:47 +00:00
(improvement)(chat) support remove where condition and fix simplifySql space error and addAggregateToMetric optimize (#170)
This commit is contained in:
@@ -30,7 +30,7 @@ public class GroupByCorrector extends BaseSemanticCorrector {
|
||||
|
||||
if (!CollectionUtils.isEmpty(selectFields)
|
||||
&& !CollectionUtils.isEmpty(metrics)
|
||||
&& !selectFields.stream().anyMatch(s -> metrics.contains(s))) {
|
||||
&& selectFields.stream().anyMatch(s -> metrics.contains(s))) {
|
||||
//add aggregate to all metric
|
||||
addAggregateToMetric(semanticCorrectInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user