mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-16 15:12:26 +00:00
[improvement][chat]Change query type resolution logic.
This commit is contained in:
@@ -30,10 +30,7 @@ public class SqlSelectFunctionHelper {
|
||||
Arrays.asList("SUM", "COUNT", "MAX", "MIN", "AVG");
|
||||
|
||||
public static boolean hasAggregateFunction(String sql) {
|
||||
if (!CollectionUtils.isEmpty(getFunctions(sql))) {
|
||||
return true;
|
||||
}
|
||||
return SqlSelectHelper.hasGroupBy(sql);
|
||||
return !CollectionUtils.isEmpty(getFunctions(sql));
|
||||
}
|
||||
|
||||
public static boolean hasFunction(String sql, String functionName) {
|
||||
|
||||
Reference in New Issue
Block a user