(improvement)(chat) support remove where condition and fix simplifySql space error and addAggregateToMetric optimize (#170)

This commit is contained in:
lexluo09
2023-10-07 21:51:37 +08:00
committed by GitHub
parent eccd791a39
commit 4ccee8b107
9 changed files with 128 additions and 24 deletions

View File

@@ -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);
}