feat: aggiungere inspect schema-diff per controlli RAW multi-anno#16
Merged
feat: aggiungere inspect schema-diff per controlli RAW multi-anno#16
inspect schema-diff per controlli RAW multi-anno#16Conversation
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.
Closes #14
Sintesi
Questa PR aggiunge un comando leggero
inspect schema-diffper confrontare i principali segnali di schema RAW tra gli anni configurati.L'obiettivo e aiutare i dataset storici o multi-anno quando il problema non e solo un file sporco, ma il fatto che header, colonne o segnali di lettura cambiano tra un anno e l'altro.
Perche serve
Oggi il toolkit espone gia diversi segnali utili nel passaggio
raw -> clean:metadata.jsonprofile_hintsinspect pathsprofile rawPero manca ancora un comando compatto che dica rapidamente, anno per anno:
Questo rende piu manuale del necessario il controllo sui dataset storici.
Cosa cambia
Aggiunti:
toolkit inspect schema-diff --config dataset.ymltoolkit inspect schema-diff --config dataset.yml --jsonIl comando:
metadata.jsoneprofile_hintsquando disponibilibuild_profile_hints()sul file RAW primario se i metadata mancanoOutput
Per ogni anno configurato mostra almeno:
primary_output_fileprofile_sourceencodingdelimdecimalskipheader_linecolumns_countcolumns_previewwarningsPoi mostra il confronto tra anni consecutivi:
changedScope
Dentro il perimetro:
--jsonFuori scope:
profile rawstatusTest
Aggiunti test CLI per:
Verifica eseguita: