(improvement)(headless)Improve javadocs and log messages.

This commit is contained in:
jerryjzhang
2024-06-01 21:48:28 +08:00
parent ef69562bdb
commit 52b078e3c5
3 changed files with 11 additions and 16 deletions

View File

@@ -159,7 +159,6 @@ public abstract class BaseMapper implements SchemaMapper {
}
SchemaElement elementDb = dataSetSchema.getElement(elementType, elementID);
if (Objects.isNull(elementDb)) {
log.warn("element is null, elementType:{},elementID:{}", elementType, elementID);
return null;
}
BeanUtils.copyProperties(elementDb, element);

View File

@@ -26,7 +26,6 @@ public class RuleSqlParser implements SemanticParser {
@Override
public void parse(QueryContext queryContext, ChatContext chatContext) {
if (!queryContext.getText2SQLType().enableRule()) {
log.info("not enable rule, skip");
return;
}
SchemaMapInfo mapInfo = queryContext.getMapInfo();