Elasticsearch: Filter pipeline aggregations from order by options (#28620)
This commit is contained in:
1 parent
dbaf213f8a
commit
135b83e17f
1 file changed
+1
-1
@@ -246,7 +246,7 @@ export function getMovingAvgSettings(model: any, filtered: boolean) {
|
||||
export function getOrderByOptions(target: any) {
|
||||
const metricRefs: any[] = [];
|
||||
_.each(target.metrics, metric => {
|
||||
if (metric.type !== 'count') {
|
||||
if (metric.type !== 'count' && !isPipelineAgg(metric.type)) {
|
||||
metricRefs.push({ text: describeMetric(metric), value: metric.id });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user