Skip to main content

MultiValidate

Collect many interrogated validations and report on them together.

Usage

Source

MultiValidate(
    *validations,
    order="time",
)

A MultiValidate object holds a set of interrogated Validate objects (the runs) and answers questions about all of them at once: what happened in each run (with get_tabular_report(), which puts every run’s report on one page), whether the whole set is OK (with all_passed(), above_threshold(), and get_health_score()), and what all the results are as a single DataFrame (with get_dataframe()).

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.

Raises

ValueError

If a validation hasn’t been interrogated.

TypeError
If an item isn’t a Validate or PipelineResult object.

Examples

Let’s validate two tables, as two separate jobs might, and collect the interrogated validations in a MultiValidate object.

import pointblank as pb

small_table = pb.load_dataset(dataset="small_table")
game_revenue = pb.load_dataset(dataset="game_revenue")

validation_1 = (
    pb.Validate(data=small_table, tbl_name="small_table", thresholds=(0.1, 0.25))
    .col_vals_gt(columns="d", value=1000)
    .col_vals_not_null(columns="c")
    .interrogate()
)

validation_2 = (
    pb.Validate(data=game_revenue, tbl_name="game_revenue", thresholds=(0.1, 0.25))
    .col_vals_gt(columns="item_revenue", value=0)
    .col_vals_in_set(columns="item_type", set=["iap", "ad"])
    .interrogate()
)

multi = pb.MultiValidate(validation_1, validation_2)
multi
Pointblank Validations
RUNS
2
Health Score
99.8%
2026-11-29 05:41:06 UTC
STEPS
PASS
FAIL
Health Score
1Polarssmall_table
2026-11-29 05:41:06 UTC
2
0
2
69.23%
ERROR
2026-11-29|05:41:06
Polarssmall_tableWARNING0.1ERROR0.25CRITICAL—
STEP COLUMNS VALUES TBL EVAL UNITS PASS FAIL W E C EXT
#EBBC14 1
col_vals_gt
col_vals_gt()
d 1000 ✓ 13 7
0.54
6
0.46
● ● —
#AAAAAA 2
col_vals_not_null
col_vals_not_null()
c — ✓ 13 11
0.85
2
0.15
● ○ —
2Polarsgame_revenue
2026-11-29 05:41:06 UTC
2
2
0
100%
2026-11-29|05:41:06
Polarsgame_revenueWARNING0.1ERROR0.25CRITICAL—
STEP COLUMNS VALUES TBL EVAL UNITS PASS FAIL W E C EXT
#4CA64C 1
col_vals_gt
col_vals_gt()
item_revenue 0 ✓ 2000 2000
1.00
0
0.00
○ ○ — —
#4CA64C 2
col_vals_in_set
col_vals_in_set()
item_type iap, ad ✓ 2000 2000
1.00
0
0.00
○ ○ — —

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.