Merge remote-tracking branch 'origin/master'

This commit is contained in:
jerryjzhang
2024-09-21 13:15:13 +08:00
2 changed files with 3 additions and 1 deletions

View File

@@ -2,7 +2,6 @@ package com.tencent.supersonic.auth.authentication.interceptor;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.tencent.supersonic.auth.api.authentication.annotation.AuthenticationIgnore; import com.tencent.supersonic.auth.api.authentication.annotation.AuthenticationIgnore;
import com.tencent.supersonic.auth.api.authentication.config.AuthenticationConfig; import com.tencent.supersonic.auth.api.authentication.config.AuthenticationConfig;
import com.tencent.supersonic.auth.api.authentication.pojo.User; import com.tencent.supersonic.auth.api.authentication.pojo.User;

View File

@@ -46,6 +46,9 @@ public class DimensionRecommendProcessor implements ExecuteResultProcessor {
private List<SchemaElement> getDimensions(Long metricId, Long dataSetId) { private List<SchemaElement> getDimensions(Long metricId, Long dataSetId) {
SemanticLayerService semanticService = ContextUtils.getBean(SemanticLayerService.class); SemanticLayerService semanticService = ContextUtils.getBean(SemanticLayerService.class);
DataSetSchema dataSetSchema = semanticService.getDataSetSchema(dataSetId); DataSetSchema dataSetSchema = semanticService.getDataSetSchema(dataSetId);
if (dataSetSchema == null) {
return Lists.newArrayList();
}
List<Long> drillDownDimensions = Lists.newArrayList(); List<Long> drillDownDimensions = Lists.newArrayList();
Set<SchemaElement> metricElements = dataSetSchema.getMetrics(); Set<SchemaElement> metricElements = dataSetSchema.getMetrics();
if (!CollectionUtils.isEmpty(metricElements)) { if (!CollectionUtils.isEmpty(metricElements)) {