mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-25 17:37:57 +00:00
Hotfix to the Term Aggregation size on Data Insights (#17822)
This commit is contained in:
parent
69fcd6a572
commit
adbe59d889
@ -21,7 +21,7 @@ public class DataInsightSystemChartRepository extends EntityRepository<DataInsig
|
||||
public static final String DI_SEARCH_INDEX = "di-data-assets-*";
|
||||
|
||||
public static final String FORMULA_FUNC_REGEX =
|
||||
"\\b(count|sum|min|max|avg)+\\((k='([^']*)')?,?\\s*(q='([^']*)')?\\)?";
|
||||
"\\b(count|sum|min|max|avg|unique)+\\((k='([^']*)')?,?\\s*(q='([^']*)')?\\)?";
|
||||
|
||||
public static final String NUMERIC_VALIDATION_REGEX = "[\\d\\.+-\\/\\*\\(\\)\s]+";
|
||||
|
||||
|
@ -60,7 +60,7 @@ public class ElasticSearchLineChartAggregator
|
||||
excludeArr = lineChart.getExcludeGroups().toArray(new String[0]);
|
||||
}
|
||||
TermsAggregationBuilder termsAggregationBuilder =
|
||||
AggregationBuilders.terms("0").field(lineChart.getGroupBy()).size(20);
|
||||
AggregationBuilders.terms("0").field(lineChart.getGroupBy()).size(1000);
|
||||
termsAggregationBuilder.subAggregation(dateHistogramAggregationBuilder);
|
||||
if (includeArr != null || excludeArr != null) {
|
||||
IncludeExclude includeExclude = new IncludeExclude(includeArr, excludeArr);
|
||||
|
@ -59,7 +59,7 @@ public class OpenSearchLineChartAggregator implements OpenSearchDynamicChartAggr
|
||||
excludeArr = lineChart.getExcludeGroups().toArray(new String[0]);
|
||||
}
|
||||
TermsAggregationBuilder termsAggregationBuilder =
|
||||
AggregationBuilders.terms("0").field(lineChart.getGroupBy()).size(20);
|
||||
AggregationBuilders.terms("0").field(lineChart.getGroupBy()).size(1000);
|
||||
termsAggregationBuilder.subAggregation(dateHistogramAggregationBuilder);
|
||||
if (includeArr != null || excludeArr != null) {
|
||||
IncludeExclude includeExclude = new IncludeExclude(includeArr, excludeArr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user