mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 21:17:08 +00:00
[improvement][headless&chat]Move EntityInfoProcessor from chat to headless module and optimize code.
[improvement][headless&chat]Move `EntityInfoProcessor` from `chat` to `headless` module and optimize code.
This commit is contained in:
@@ -244,7 +244,7 @@ public class SqlSelectHelper {
|
||||
return plainSelects;
|
||||
}
|
||||
|
||||
public static List<String> getAllFields(String sql) {
|
||||
public static List<String> getAllSelectFields(String sql) {
|
||||
List<PlainSelect> plainSelects = getPlainSelects(getPlainSelect(sql));
|
||||
Set<String> results = new HashSet<>();
|
||||
for (PlainSelect plainSelect : plainSelects) {
|
||||
|
||||
@@ -28,8 +28,8 @@ public class SqlValidHelper {
|
||||
}
|
||||
|
||||
//2. all fields
|
||||
List<String> thisAllFields = SqlSelectHelper.getAllFields(thisSql);
|
||||
List<String> otherAllFields = SqlSelectHelper.getAllFields(otherSql);
|
||||
List<String> thisAllFields = SqlSelectHelper.getAllSelectFields(thisSql);
|
||||
List<String> otherAllFields = SqlSelectHelper.getAllSelectFields(otherSql);
|
||||
|
||||
if (!CollectionUtils.isEqualCollection(thisAllFields, otherAllFields)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user