Repository navigation
feat(mart): mart.tables[].internal per lo staging dei compose - #567
Merged
Merged
Conversation
Una tabella intermedia viene materializzata in out/ (le tabelle successive la leggono nella stessa sessione) ma non entra in mart_refs/marts del registry: nessun oggetto da pubblicare su GCS, nessuna voce di catalogo. Serve ai compose che leggono più volte lo stesso support: legal-graph passa da 8 letture di mart_riferimenti_urn a 1 e da 3 del clean emendamenti a 1. - config: MartTableConfig.internal (default false) - layout: il manifest espone internal - registry: esclusa da mart_refs e dalla sezione marts - docs: config-schema - test: contratto registry (staging fuori dal catalogo)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sintesi
Nuovo campo opzionale
mart.tables[].internal: true: la tabella viene materializzata inout/(le tabelle successive la leggono nella stessa sessione), ma non entra inmart_refs/martsdel registry. Serve a dichiarare lo staging dei compose senza gonfiare il catalogo con oggetti che non esistono su GCS.Contesto collegato
Nessuna issue: la motivazione viene dal compose
legal-graph, che rilegge lo stesso support 8 volte (mart_riferimenti_urn: 52,9 MiB/run misurati) e 3 volte il clean emendamenti (78,8 MiB/run). Con una tabella di staging interno scendono a 13,7 e 28,2 MiB.Cosa cambia
dataset.yml) — campo additivo, opzionale, defaultfalseImpatto su contratti pubblici
dataset.yml(nuovo campo, defaultfalse)Campo additivo: nessun dataset esistente cambia comportamento.
docs/config-schema.mdaggiornato. Downstream: lo usalegal-graph(PR successiva, dipendente da questa).Verifica
Test aggiunto:
test_internal_mart_fuori_dal_contratto_pubblico(markercontract) — verifica che la tabellainternalnon compaia né inmart_refsné nella sezionemarts.pytest -m corepassaruff check .passamypy toolkit/passacontract)Checklist PR
Note per chi revisiona
out/data/mart/(es.gsutil rsyncdella reusable pipeline) carica comunque il parquet. Per non pubblicarlo serve un sync a lista esplicita, come falegal-graph.metadata.json(audit/debug), ma è fuori damart_refse dalla sezionemarts.internalpossono averetable_rulesdi validazione come le altre.