Repository navigation
Fixes #38161: Apply recognizer exceptions to columns whose name contains a dot - #38162
Khairajani merged 3 commits into
Conversation
…se name contains a dot should_skip_recognizer split the column FQN on every dot, so a quoted column name such as "user.email" was broken apart and the entity link it built never matched an exception. It now splits only on separators outside quotes and accepts the column name as is or quoted.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Each exception link is turned into the column FQNs it can name and compared with the column's FQN, so a nested column (contact.email) is matched as well as a name with a dot in it. Adds ADR:2026-11-19-recognizer-exception-links-address-columns-like-test-case-links.
…only The analyzer cannot see the table's other columns, so a bare user.email is read as the nested path, as it would be first for a test case; a column whose own name has a dot must be quoted in the link. Adds a test with both columns and updates the decision record.
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findingsMatching exception links to dotted or nested column FQNs changes which columns bypass PII recognizers, potentially leaving configured columns unscanned. Fixes recognizer exception matching for columns whose names contain a dot by comparing each exception link's resolved column FQN against the column's FQN, so quoted names like ✅ 1 closed✅ Quality: Unrecorded rule: exception links may quote a dotted column or not
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #38161
TagAnalyzer.should_skip_recognizerbuilt the column's entity link by splitting the column FQN on every.. That broke a quoted name apart (svc.db.sch.users."user.email"gave<#E::table::svc.db.sch.users."user::columns::email">) and put a nested column's parent into the table name, so no exception for those columns could match.It now goes the other way:
_column_fqn_named_byturns each exception link into the column FQN it names (table FQN,., column path), and that's compared with the column's FQN. The link addresses the column like a test case link does (ADR:2026-10-27-nested-column-dq-tests-address-nested-paths): a nested column as a dotted path (contact.email) and a name with a dot in it quoted ("user.email"). A bareuser.emailnames only the nested column: the analyzer can't see the table's other columns, so reading it as the literal name too could let an exception for a nested field silence an unrelated column. The rule is indocs/decisions/2026-11-19-recognizer-exception-links-address-columns-like-test-case-links.md. Plain column names match as before.Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
"user.email"skips the column nameduser.email.user.emailand a nesteduser>emailin the same table, a link with the bareuser.emailskips only the nested one.emailoruserin the same table does not skipuser.email.contact.email) skips that column, and one for its parent (contact) does not.svc.db.sch."users.v2") still applies.Unit tests
tests/unit/metadata/pii/test_tag_scoring.pytest_tag_scoring.pygives the same results as on main in my environment.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
should_skip_recognizerfor a column FQNsvc.db.sch.users."user.email"with an exception onuser.email: False on main, True with this change.ruff format --checkandruff checkpass on the changed files.UI screen recording:
Not applicable — ingestion-only bug fix.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.docs/decisions/2026-11-19-recognizer-exception-links-address-columns-like-test-case-links.md.

Confidence Score: 5/5
The reviewed changes appear safe to merge.Summary
Recognizer exceptions now match column names without splitting quoted names or confusing nested fields with literal dotted names.
The previous finding is addressed. No new actionable issues found. Tests were not run during this review.
Reviews (3) · Last reviewed commit: "Read an unquoted dotted path in an excep..." · Reviewed by Greptile