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