mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
(improvement)(chat)LLM might output table or column with `` enclose, should handle with it.
This commit is contained in:
@@ -294,7 +294,8 @@ public class SqlSelectHelper {
|
||||
}
|
||||
// do not account in aliases
|
||||
results.removeAll(aliases);
|
||||
return new ArrayList<>(results);
|
||||
return new ArrayList<>(
|
||||
results.stream().map(r -> r.replaceAll("`", "")).collect(Collectors.toList()));
|
||||
}
|
||||
|
||||
private static List<String> getFieldsByPlainSelect(PlainSelect plainSelect) {
|
||||
|
||||
Reference in New Issue
Block a user