feat(ingest/powerbi): resolve column lineage via TMDL sourceColumn and DAX references

BR
10d ago
+1984-318

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_scan and workspace_apis modes; the native-SQL path drops lineage onto non-source columns too.
  • New extract_dax_reference_lineage (default false, requires workspace_apis and extract_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] inside SUMX('Other', …) is counted as unattributed, not mis-resolved), VAR names excluded from table references.
  • Reporting: dax_references_resolved / dax_references_unresolved / dax_references_unattributed, one aggregated DAX Reference Not Resolved warning; measure_references_unresolved is replaced by dax_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