feat(ingest/powerbi): resolve column lineage via TMDL sourceColumn and DAX references
BR
10d ago+1984+1984+0123456789012345678901234567890123456789-318-318-012345678901234567890123456789
Summary
- Column lineage follows each column's TMDL
sourceColumn, so a field renamed in the semantic model points at its real upstream column instead of a same-named one. Not gated: it is a correctness fix. - Calculated columns (DAX-defined) no longer get a column-level edge from a same-named warehouse column, in both
admin_scanandworkspace_apismodes; the native-SQL path drops lineage onto non-source columns too. - New
extract_dax_reference_lineage(defaultfalse, requiresworkspace_apisandextract_column_level_lineage): calculated columns, calculated tables and measures get fine-grained lineage from the fields their DAX reads, only to fields that exist in the model. - New
rest_api_wrapper/dax_parser.py: comment/string/quoted-identifier aware reference extraction, row-context iterator detection (a bare[Column]insideSUMX('Other', …)is counted as unattributed, not mis-resolved),VARnames excluded from table references. - Reporting:
dax_references_resolved/dax_references_unresolved/dax_references_unattributed, one aggregatedDAX Reference Not Resolvedwarning;measure_references_unresolvedis replaced bydax_references_unresolved.
Breaking change
Column lineage onto calculated columns is removed in both modes. See docs/how/breaking-changes.md.
Stack
Part of a stack built on #20842 (Power BI metadata_api_mode: workspace_apis). Merge order:
#20876 → #20877 → #20878 → #20879 → #20880 → #20881 → #20882 → #20883 → #20884 → #20885.
Review this PR's own diff against its base branch; each layer is self-contained and tested on its own.
Checklist
- PR title follows the Conventional Commits format
- Tests added/updated (unit and integration goldens)
- Docs updated (
metadata-ingestion/docs/sources/powerbi/) - Breaking change documented in
docs/how/breaking-changes.md
🤖 Generated with Claude Code