You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix for derived metrics
Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
* fixes for byte
Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
---------
Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/index/compositeindex/datacube/startree/builder/BaseStarTreeBuilder.java
+2-5
Original file line number
Diff line number
Diff line change
@@ -150,10 +150,7 @@ public List<MetricAggregatorInfo> generateMetricAggregatorInfos(MapperService ma
150
150
metricAggregatorInfos.add(metricAggregatorInfo);
151
151
continue;
152
152
}
153
-
for (MetricStatmetricStat : metric.getMetrics()) {
154
-
if (metricStat.isDerivedMetric()) {
155
-
continue;
156
-
}
153
+
for (MetricStatmetricStat : metric.getBaseMetrics()) {
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/index/compositeindex/datacube/startree/builder/OffHeapStarTreeBuilder.java
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/index/compositeindex/datacube/startree/builder/OnHeapStarTreeBuilder.java
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/index/compositeindex/datacube/startree/fileformats/meta/StarTreeMetadata.java
+25-4
Original file line number
Diff line number
Diff line change
@@ -220,16 +220,37 @@ private int readMetricsCount() throws IOException {
Copy file name to clipboardexpand all lines: server/src/test/java/org/opensearch/index/codec/composite99/datacube/startree/StarTreeDocValuesFormatTests.java
+60-9
Original file line number
Diff line number
Diff line change
@@ -119,23 +119,23 @@ public void testStarTreeDocValues() throws IOException {
0 commit comments