diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/DataInsightChartRepository.java b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/DataInsightChartRepository.java index 45b4654434d..86019f577b3 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/DataInsightChartRepository.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/DataInsightChartRepository.java @@ -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.SumAggregationBuilder; import org.elasticsearch.search.builder.SearchSourceBuilder; -import org.openmetadata.common.utils.CommonUtil; import org.openmetadata.schema.dataInsight.DataInsightChart; import org.openmetadata.schema.dataInsight.DataInsightChartResult; import org.openmetadata.schema.type.EntityReference; @@ -120,7 +119,7 @@ public class DataInsightChartRepository extends EntityRepository teamArray = CommonUtil.listOf(team); + List teamArray = Arrays.asList(team.split("\\s*,\\s*")); BoolQueryBuilder teamQueryFilter = QueryBuilders.boolQuery(); teamQueryFilter.should(QueryBuilders.termsQuery(DATA_TEAM, teamArray)); @@ -128,7 +127,7 @@ public class DataInsightChartRepository extends EntityRepository tierArray = CommonUtil.listOf(tier); + List tierArray = Arrays.asList(tier.split("\\s*,\\s*")); BoolQueryBuilder tierQueryFilter = QueryBuilders.boolQuery(); tierQueryFilter.should(QueryBuilders.termsQuery(DATA_ENTITY_TIER, tierArray));