[fix][chat]Fix compatibility issue.

This commit is contained in:
jerryjzhang
2025-02-07 09:52:03 +08:00
parent 30adaa3f20
commit fd306db3fe
2 changed files with 9 additions and 1 deletions

View File

@@ -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;
}
}

View File

@@ -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(),