Skip to content

Commit 3dc9fbd

Browse files
wcchang1115ctiml
authored andcommitted
Add a new column and metric filter
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io> Co-authored-by: Timothy Lee <ctiml@infuseai.io>
1 parent 8fd2fc8 commit 3dc9fbd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

models/marts/metrics.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,10 @@ metrics:
2727
time_grains: [ day, week, month ]
2828
dimensions: [ repo ]
2929

30+
filters:
31+
- field: author
32+
operator: '!='
33+
value: "'github-actions[bot]'"
34+
3035
tags:
31-
- piperider
36+
- piperider

models/staging/stg_commits.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ renamed as (
1717
email,
1818
message,
1919
date as datetime,
20-
raw_date
20+
raw_date,
21+
concat('UTC', substr(raw_date, 20)) as utc_offset
2122
from source
2223

2324
)

0 commit comments

Comments
 (0)