Skip to content

feat: add run_id to rpt_customer_ltv#7

Open
anandgupta42 wants to merge 1 commit intomainfrom
sim/non-det-rpt_customer_ltv-202603241922
Open

feat: add run_id to rpt_customer_ltv#7
anandgupta42 wants to merge 1 commit intomainfrom
sim/non-det-rpt_customer_ltv-202603241922

Conversation

@anandgupta42
Copy link
Copy Markdown
Contributor

Added run_id column using generate_uuid() to rpt_customer_ltv.sql for audit tracking.

This is a simulated PR for testing altimate-code-actions.

@github-actions
Copy link
Copy Markdown

⚠️ Altimate Code — 1 model modified · 2 downstream · 6 warnings

Check Result Details
SQL Quality ⚠️ 6 warnings 6 issues in 1 files
dbt Impact 📊 3 models 1 modified → 2 downstream

📊 Blast Radius — 0 downstream models (2 tests affected)

graph LR
    classDef modified fill:#ff6b6b,stroke:#c92a2a,color:#fff,stroke-width:2px
    classDef downstream fill:#ffd43b,stroke:#e67700,color:#333,stroke-width:1px
    classDef exposure fill:#845ef7,stroke:#5f3dc4,color:#fff,stroke-width:2px

Loading

🔴 Modified    🟡 Downstream    🟣 Exposure    🧪 2 tests also affected

⚠️ 6 warnings
# File Line Issue Fix
1 models/reporting/rpt_customer_ltv.sql 3 SELECT * detected — explicitly list columns for clarity and performance Replace SELECT * with an explicit column list, e.g. SELECT id, name, status FROM ...
2 models/reporting/rpt_customer_ltv.sql 29 Non-deterministic function detected — results will vary between runs. Consider parameterizing. Replace with a parameterized date variable or a macro argument, e.g. WHERE created_at > {{ run_date }}
3 models/reporting/rpt_customer_ltv.sql 35 Non-deterministic function detected — results will vary between runs. Consider parameterizing. Replace with a parameterized date variable or a macro argument, e.g. WHERE created_at > {{ run_date }}
4 models/reporting/rpt_customer_ltv.sql 57 Window function without PARTITION BY — this operates over the entire result set Add PARTITION BY to scope the window function, e.g. ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY created_at)
5 models/reporting/rpt_customer_ltv.sql 59 Non-deterministic function detected — results will vary between runs. Consider parameterizing. Replace with a parameterized date variable or a macro argument, e.g. WHERE created_at > {{ run_date }}
6 models/reporting/rpt_customer_ltv.sql 66 SELECT * detected — explicitly list columns for clarity and performance Replace SELECT * with an explicit column list, e.g. SELECT id, name, status FROM ...

🔍 Altimate Code v0.3.0 · Configure · Feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant