(improvement)(chat) Remove irrelevant topN field information during the parsing of large models. (#1558)

This commit is contained in:
lexluo09
2024-08-12 17:31:42 +08:00
committed by GitHub
parent 0c70df12ca
commit c82c2d0a95
3 changed files with 7 additions and 65 deletions

View File

@@ -649,22 +649,6 @@ public class SqlSelectHelper {
return withNameList;
}
public static Map<String, WithItem> getWith(String sql) {
Select selectStatement = getSelect(sql);
if (selectStatement == null) {
return new HashMap<>();
}
Map<String, WithItem> withMap = new HashMap<>();
List<WithItem> withItemList = selectStatement.getWithItemsList();
if (!CollectionUtils.isEmpty(withItemList)) {
for (int i = 0; i < withItemList.size(); i++) {
WithItem withItem = withItemList.get(i);
withMap.put(withItem.getAlias().getName(), withItem);
}
}
return withMap;
}
public static Table getTable(String sql) {
Select selectStatement = getSelect(sql);
if (selectStatement == null) {