This is useful when many validations run separately, such as the jobs of an ETL process that each validate their own table, or the same validation run on a schedule. Each job can save its interrogated validation with write_file(), and a later step can collect the files with from_files() to make one report. A MultiValidate object never interrogates anything itself, so it only needs the results (not the tables that were validated).
Parameters
*validations:Validate | PipelineResult
Interrogated Validate objects. A PipelineResult can be given as well, and it adds its source and target validations (those that were run).
order:Literal["time", "given"]="time"
The order of the runs. With "time" (the default), the runs are ordered by the time their interrogation ended, earliest first. With "given", the runs keep the order they were given in (and runs added later with add() go at the end).
Returns
MultiValidate
A MultiValidate object. Its length is the number of runs, and indexing it (e.g., multi[0]) gives the Validate object of a run.
Displaying the object shows every run’s validation report on one page. An overview at the top gives the number of runs, their overall health score, and a strip of status colors (one block for each run, linking to its section). Each run is in a section that can be opened or closed, and the line at the top of each section summarizes the run: its status, table, end time, number of steps passed and failed, health score, and the highest threshold level reached. The sections of runs with failing steps start open.
The roll-up methods give a verdict for the whole set:
multi.above_threshold(level="error")
True
It’s True because the first step of the small_table run had more failing test units than its error threshold allows. And get_dataframe() gives the results of every step of every run as one DataFrame, which is a good starting point for a dashboard or a log of results.