You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
fix(review): a PII column whose source() changed schema is not reported #1899
models/staging/sources.yml defines sources crm (schema main) and crm_raw (schema raw), each with a table raw_customers.
Base models/marts/contacts.sql: select id as customer_id, ssn from {{ source('crm','raw_customers') }}. Also tried lower(email) as email and lower(ssn) as ssn_norm.
The PR changes only the source call to source('crm_raw','raw_customers'). The compiled FROM changes from "shop"."main"."raw_customers" to "shop"."raw"."raw_customers".
Run altimate review --base main --head pr --no-ai --json, with and without --force-tier full.
Observed: APPROVE, no findings.
Expected: a PII finding. The v0.12.13 changelog says the review reports "a computed PII column whose table changed (a schema, source, CTE or UNION branch swapped)", and the docs say "a changed schema, source, var or package a relation is built from is a different table".
Note: the unit tests (review-pii-source-change.test.ts) always change the PII column's line as well; here only the from line changes. Either the check or the docs need changing.
Activity