Skip to content

Commit

Permalink
Update migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv committed Aug 12, 2024
1 parent 637b5fa commit 06930ba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
DROP TABLE IF EXISTS signoz_metrics.samples_v4_agg_5m;
DROP TABLE IF EXISTS signoz_metrics.samples_v4_agg_5m_mv;
DROP TABLE IF EXISTS signoz_metrics.samples_v4_agg_30m;
DROP TABLE IF EXISTS signoz_metrics.samples_v4_agg_30m_mv;
DROP TABLE IF EXISTS signoz_metrics.distributed_samples_v4_agg_5m;
DROP TABLE IF EXISTS signoz_metrics.distributed_samples_v4_agg_30m;
DROP TABLE IF EXISTS signoz_metrics.time_series_v4_1week;
DROP TABLE IF EXISTS signoz_metrics.distributed_time_series_v4_1week;
DROP TABLE IF EXISTS signoz_metrics.time_series_v4_1week_mv;
DROP TABLE IF EXISTS signoz_metrics.samples_v4_agg_5m ON CLUSTER {{.SIGNOZ_CLUSTER}};
DROP TABLE IF EXISTS signoz_metrics.samples_v4_agg_5m_mv ON CLUSTER {{.SIGNOZ_CLUSTER}};
DROP TABLE IF EXISTS signoz_metrics.samples_v4_agg_30m ON CLUSTER {{.SIGNOZ_CLUSTER}};
DROP TABLE IF EXISTS signoz_metrics.samples_v4_agg_30m_mv ON CLUSTER {{.SIGNOZ_CLUSTER}};
DROP TABLE IF EXISTS signoz_metrics.distributed_samples_v4_agg_5m ON CLUSTER {{.SIGNOZ_CLUSTER}};
DROP TABLE IF EXISTS signoz_metrics.distributed_samples_v4_agg_30m ON CLUSTER {{.SIGNOZ_CLUSTER}};
DROP TABLE IF EXISTS signoz_metrics.time_series_v4_1week ON CLUSTER {{.SIGNOZ_CLUSTER}};
DROP TABLE IF EXISTS signoz_metrics.distributed_time_series_v4_1week ON CLUSTER {{.SIGNOZ_CLUSTER}};
DROP TABLE IF EXISTS signoz_metrics.time_series_v4_1week_mv ON CLUSTER {{.SIGNOZ_CLUSTER}};
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ SELECT
metric_name,
fingerprint,
intDiv(unix_milli, 1800000) * 1800000 as unix_milli,
anyLast(value) as last,
min(value) as min,
max(value) as max,
sum(value) as sum,
count(*) as count
anyLast(last) as last,
min(min) as min,
max(max) as max,
sum(sum) as sum,
sum(count) as count
FROM signoz_metrics.samples_v4_agg_5m
GROUP BY
env,
Expand Down

0 comments on commit 06930ba

Please sign in to comment.