Skip to content

Commit

Permalink
fix: Copy metrics to Clickhouse (#1920)
Browse files Browse the repository at this point in the history
* Set the timeseries_metrics to be copied to Clickhouse
* Fix a bug for duplicate values in metrics_v0
  • Loading branch information
ryscheng authored Aug 6, 2024
1 parent 3b3861f commit 7695310
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion warehouse/dbt/models/intermediate/metrics/int_metrics.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
select
select distinct
{{ oso_id('"OSO"', '"oso"', 'metric') }} as metric_id,
"OSO" as metric_source,
"oso" as metric_namespace,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{{
config(meta = {
'sync_to_db': True,
'index': {
'idx_metric_id': ["metric_id"],
'idx_artifact_id': ["artifact_id"],
}
})
}}

select
metric_id,
artifact_id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{{
config(meta = {
'sync_to_db': True,
'index': {
'idx_metric_id': ["metric_id"],
'idx_project_id': ["project_id"],
}
})
}}

select
metric_id,
project_id,
Expand Down

0 comments on commit 7695310

Please sign in to comment.