mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 04:27:39 +00:00
[fix][chat]Fix compatibility issue.
This commit is contained in:
@@ -12,6 +12,7 @@ public class QueryColumn {
|
||||
private String name;
|
||||
private String type;
|
||||
private String bizName;
|
||||
private String nameEn;
|
||||
private String showType;
|
||||
private Boolean authorized = true;
|
||||
private String dataFormatType;
|
||||
@@ -22,6 +23,7 @@ public class QueryColumn {
|
||||
public QueryColumn(String bizName, String type) {
|
||||
this.type = type;
|
||||
this.bizName = bizName;
|
||||
this.nameEn = bizName;
|
||||
this.name = bizName;
|
||||
}
|
||||
|
||||
@@ -29,10 +31,16 @@ public class QueryColumn {
|
||||
this.name = name;
|
||||
this.type = type;
|
||||
this.bizName = bizName;
|
||||
this.nameEn = bizName;
|
||||
this.showType = "CATEGORY";
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type;
|
||||
}
|
||||
|
||||
public void setBizName(String bizName) {
|
||||
this.bizName = bizName;
|
||||
this.nameEn = bizName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public abstract class BaseSemanticCorrector implements SemanticCorrector {
|
||||
try {
|
||||
String s2SQL = semanticParseInfo.getSqlInfo().getCorrectedS2SQL();
|
||||
if (Objects.isNull(s2SQL)) {
|
||||
return;
|
||||
semanticParseInfo.getSqlInfo().setCorrectedS2SQL(semanticParseInfo.getSqlInfo().getParsedS2SQL());
|
||||
}
|
||||
doCorrect(chatQueryContext, semanticParseInfo);
|
||||
log.debug("sqlCorrection:{} sql:{}", this.getClass().getSimpleName(),
|
||||
|
||||
Reference in New Issue
Block a user