mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
(improvement)(Headless) Delete code: removeFilterIfNotInLinkingValue. (#938)
This commit is contained in:
@@ -36,8 +36,6 @@ public class SchemaCorrector extends BaseSemanticCorrector {
|
||||
@Override
|
||||
public void doCorrect(QueryContext queryContext, SemanticParseInfo semanticParseInfo) {
|
||||
|
||||
removeFilterIfNotInLinkingValue(queryContext, semanticParseInfo);
|
||||
|
||||
correctAggFunction(semanticParseInfo);
|
||||
|
||||
replaceAlias(semanticParseInfo);
|
||||
|
||||
@@ -85,13 +85,14 @@ public class MetaDiscoveryServiceImpl implements MetaDiscoveryService {
|
||||
private Map<String, List<SchemaElementMatch>> getTopFields(Integer topN,
|
||||
SchemaMapInfo mapInfo,
|
||||
Map<Long, String> dataSetMap) {
|
||||
Set<Long> dataSetIds = mapInfo.getDataSetElementMatches().keySet();
|
||||
Map<String, List<SchemaElementMatch>> result = new HashMap<>();
|
||||
|
||||
SemanticSchema semanticSchema = semanticService.getSemanticSchema();
|
||||
for (Long dataSetId : dataSetIds) {
|
||||
for (Map.Entry<Long, List<SchemaElementMatch>> entry : mapInfo.getDataSetElementMatches().entrySet()) {
|
||||
Long dataSetId = entry.getKey();
|
||||
List<SchemaElementMatch> values = entry.getValue();
|
||||
String dataSetName = dataSetMap.get(dataSetId);
|
||||
if (StringUtils.isBlank(dataSetName)) {
|
||||
if (StringUtils.isBlank(dataSetName) || CollectionUtils.isEmpty(values)) {
|
||||
continue;
|
||||
}
|
||||
//topN dimensions
|
||||
|
||||
@@ -72,6 +72,7 @@ s2:
|
||||
# inProcess:
|
||||
# modelPath: /data/model.onnx
|
||||
# vocabularyPath: /data/onnx_vocab.txt
|
||||
# shibing624/text2vec-base-chinese
|
||||
#2.2 open_ai
|
||||
# embedding-model:
|
||||
# provider: open_ai
|
||||
|
||||
Reference in New Issue
Block a user