mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 13:07:32 +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
|
||||
|
||||
Reference in New Issue
Block a user