3
0

Add order by over dimensions for compose record reports

This commit is contained in:
Tomaž Jerman
2022-11-30 15:44:59 +01:00
committed by Jože Fortun
parent ba09184834
commit 0c040cce8a

View File

@@ -2033,6 +2033,7 @@ func recordReportToDalPipeline(m *types.Module, metrics, dimensions, f string) (
Key: true,
},
}
oo := filter.SortExprSet{{Column: dim[0].Identifier}}
// Map metrics to the aggregate attrs
// - count is always present
@@ -2069,6 +2070,9 @@ func recordReportToDalPipeline(m *types.Module, metrics, dimensions, f string) (
RelSource: "ds",
Group: dim,
OutAttributes: mms,
Filter: filter.Generic(
filter.WithOrderBy(oo),
),
}
// Build the pipeline