feat: silver_events 증분 모델 (GA4 이벤트 정제)#20
Merged
Conversation
- silver_ga4_events → silver_events 리네임 (dataset=silver라 ga4 접두어 제거) - incremental + insert_overwrite + event_dt 파티션 - GA4 최근 3일 재처리 (late data) + 백필용 날짜 vars(start_date/end_date) - event_params/device 를 컬럼으로 flatten (이벤트/세션/기기/파라미터) - not_null 테스트 (event_dt, event_name, user_pseudo_id) 로컬 stage 검증: 전체(64.4만행) + 날짜범위(7/1~15) 실행 확인. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe PR replaces the current-day GA4 silver model with an incremental ChangesGA4 silver events model
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant dbt as dbt silver_events
participant ga4 as ga4.events
participant table as silver_events table
dbt->>ga4: Select non-intraday events for the selected date range
ga4-->>dbt: Return GA4 event rows
dbt->>dbt: Standardize fields and pivot event parameters
dbt->>table: Insert-overwrite event_dt partitions
Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GA4 이벤트를 정제하는 첫 silver 모델.
silver_ga4_events→silver_events리네임.insert_overwrite+event_dt파티션 +user_pseudo_id/event_name클러스터--vars '{"start_date":"YYYYMMDD","end_date":"YYYYMMDD"}'(백필/특정범위) → Airflow가 이 vars 주입 예정검증 (로컬 stage)
15): 확정분 7/113만 처리 확인 (intraday 제외)참고
기존 Dataform
incremental_stg_events_final스키마 참고해서 GA4 부분만 추출.user 속성(gender/major/uid_norm)은 후속
silver_users에서 (앱 DB 적재 후 조인).🤖 Generated with Claude Code
Summary by CodeRabbit
silver_eventsdataset for GA4 event data.