Skip to content

Commit b7e28e1

Browse files
wcchang1115ctiml
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 c04e4a0 commit b7e28e1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

models/marts/metrics.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ metrics:
4343
label: Active authors
4444
type_params:
4545
measure: active_authors
46+
filter: |
47+
{{ Dimension('repo__author') }} != 'github-actions[bot]'

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)