Skip to content

mart: segnalare mismatch tra tables e validate.table_rules#34

Merged
Gabrymi93 merged 2 commits intomainfrom
fix/mart-table-rules-cross-check
Mar 11, 2026
Merged

mart: segnalare mismatch tra tables e validate.table_rules#34
Gabrymi93 merged 2 commits intomainfrom
fix/mart-table-rules-cross-check

Conversation

@Gabrymi93
Copy link
Member

@Gabrymi93 Gabrymi93 commented Mar 11, 2026

Sintesi

  • aggiunge un cross-check tra mart.tables e mart.validate.table_rules durante la validation MART
  • segnala con warning le regole riferite a tabelle non dichiarate in mart.tables
  • include nel summary di validation anche declared_tables e orphan_table_rules
  • mantiene il comportamento non bloccante: il mismatch viene esposto ma non trasforma da solo la validation in errore

Comportamento

Esempio di warning prodotto:

MART table_rules reference tables not declared in mart.tables: ['bar']

Test eseguiti

  • py -m pytest tests\test_validate_layers.py
  • py -m pytest tests\test_cli_path_contract.py

Issue collegata

Closes #29

@Gabrymi93 Gabrymi93 merged commit 904f184 into main Mar 11, 2026
5 checks passed
@Gabrymi93 Gabrymi93 deleted the fix/mart-table-rules-cross-check branch March 11, 2026 22:35
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.

mart: segnalare mismatch tra tables e validate.table_rules

1 participant