For all the metrics that has a inner query block in getGroupIdClause, we should use max(created_at) as the column to determine the name column rather than use month or other aggregated column.
As the CI has broken, I have ran the test in local env with monthly export task, merge first and will fix if there are some minor errors in the future.
fix #1540
For all the metrics that has a inner query block in
getGroupIdClause
, we should usemax(created_at)
as the column to determine thename
column rather than usemonth
or other aggregated column.