mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 12:39:01 +00:00
parent
36e01a2b21
commit
1df8014f78
@ -17,7 +17,6 @@ import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilde
|
|||||||
import org.elasticsearch.search.aggregations.metrics.MaxAggregationBuilder;
|
import org.elasticsearch.search.aggregations.metrics.MaxAggregationBuilder;
|
||||||
import org.elasticsearch.search.aggregations.metrics.SumAggregationBuilder;
|
import org.elasticsearch.search.aggregations.metrics.SumAggregationBuilder;
|
||||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||||
import org.openmetadata.common.utils.CommonUtil;
|
|
||||||
import org.openmetadata.schema.dataInsight.DataInsightChart;
|
import org.openmetadata.schema.dataInsight.DataInsightChart;
|
||||||
import org.openmetadata.schema.dataInsight.DataInsightChartResult;
|
import org.openmetadata.schema.dataInsight.DataInsightChartResult;
|
||||||
import org.openmetadata.schema.type.EntityReference;
|
import org.openmetadata.schema.type.EntityReference;
|
||||||
@ -120,7 +119,7 @@ public class DataInsightChartRepository extends EntityRepository<DataInsightChar
|
|||||||
BoolQueryBuilder searchQueryFiler = new BoolQueryBuilder();
|
BoolQueryBuilder searchQueryFiler = new BoolQueryBuilder();
|
||||||
|
|
||||||
if (team != null && SUPPORTS_TEAM_FILTER.contains(dataInsightChartName)) {
|
if (team != null && SUPPORTS_TEAM_FILTER.contains(dataInsightChartName)) {
|
||||||
List<String> teamArray = CommonUtil.listOf(team);
|
List<String> teamArray = Arrays.asList(team.split("\\s*,\\s*"));
|
||||||
|
|
||||||
BoolQueryBuilder teamQueryFilter = QueryBuilders.boolQuery();
|
BoolQueryBuilder teamQueryFilter = QueryBuilders.boolQuery();
|
||||||
teamQueryFilter.should(QueryBuilders.termsQuery(DATA_TEAM, teamArray));
|
teamQueryFilter.should(QueryBuilders.termsQuery(DATA_TEAM, teamArray));
|
||||||
@ -128,7 +127,7 @@ public class DataInsightChartRepository extends EntityRepository<DataInsightChar
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tier != null && SUPPORTS_TIER_FILTER.contains(dataInsightChartName)) {
|
if (tier != null && SUPPORTS_TIER_FILTER.contains(dataInsightChartName)) {
|
||||||
List<String> tierArray = CommonUtil.listOf(tier);
|
List<String> tierArray = Arrays.asList(tier.split("\\s*,\\s*"));
|
||||||
|
|
||||||
BoolQueryBuilder tierQueryFilter = QueryBuilders.boolQuery();
|
BoolQueryBuilder tierQueryFilter = QueryBuilders.boolQuery();
|
||||||
tierQueryFilter.should(QueryBuilders.termsQuery(DATA_ENTITY_TIER, tierArray));
|
tierQueryFilter.should(QueryBuilders.termsQuery(DATA_ENTITY_TIER, tierArray));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user