mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-01-06 09:23:02 +08:00
(improvement)(chat) support show logicSql querySql llmParseSql (#148)
This commit is contained in:
@@ -132,7 +132,7 @@ public class LLMDslParser implements SemanticParser {
|
||||
if (StringUtils.isEmpty(correctorSql)) {
|
||||
correctorSql = semanticCorrectInfo.getSql();
|
||||
}
|
||||
parseInfo.setLogicSql(correctorSql);
|
||||
parseInfo.getSqlInfo().setLogicSql(correctorSql);
|
||||
List<FilterExpression> expressions = SqlParserSelectHelper.getFilterExpression(correctorSql);
|
||||
//set dataInfo
|
||||
try {
|
||||
@@ -281,6 +281,7 @@ public class LLMDslParser implements SemanticParser {
|
||||
parseInfo.setProperties(properties);
|
||||
parseInfo.setScore(function_bonus_threshold);
|
||||
parseInfo.setQueryMode(semanticQuery.getQueryMode());
|
||||
parseInfo.getSqlInfo().setLlmParseSql(dslParseResult.getLlmResp().getSqlOutput());
|
||||
|
||||
SemanticSchema semanticSchema = ContextUtils.getBean(SchemaService.class).getSemanticSchema();
|
||||
Map<Long, String> modelIdToName = semanticSchema.getModelIdToName();
|
||||
|
||||
@@ -165,7 +165,7 @@ public class QueryServiceImpl implements QueryService {
|
||||
if (Objects.isNull(explain)) {
|
||||
return;
|
||||
}
|
||||
parseInfo.setQuerySql(explain.getSql());
|
||||
parseInfo.getSqlInfo().setQuerySql(explain.getSql());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user