Skip to main content
A record window makes every record its own window, dated by a timestamp field. Validators on a record window produce one datapoint per timestamp, instead of one per time interval as on a tumbling window. For an overview of window types, see About Windows. Record windows are the window type of Imported Metric validators, where each reported metric value is one record. You can also add record windows to data warehouse, query engine, and dbt sources. Record windows are not available on streaming sources.
A record window evaluates one record per timestamp, in each segment. When several records share the same value in the data-time field, Validio picks one of them arbitrarily and ignores the rest, without an error. Use a data-time field that is unique per record, such as an event timestamp, not a date. For example, on a table with 500 rows that share one created_at date, the validator evaluates one row.

Add a record window

  1. Navigate to the source’s details page and click the Windows tab.
  2. Click + New window.
  3. Under Select type, choose Record window. If the source does not support record windows, the type is disabled. Hover over it to see why.
  4. Under Configuration,
    1. Select the Data-time field, the timestamp field that dates each record.
    2. Validio fills in a Name for the window from the field, such as Record (created_at). To use your own, type it in the Name field. Once you type, click Generate name to return to the generated name.
    3. (Optional) Under Advanced, configure partition filtering and segment retention.
  5. Click Create window.
The New window dialog with Record window selected, the _loaded_at data-time field, and the name Record (_loaded_at)

New record window

Only the name of a record window can be changed after it is created. To use a different data-time field, create a new window. For more information, see Updating a window.

Configuration parameters

Record windows on imported metrics sources

An imported metrics source has one record window, on the validio_observed_at field. This field holds the observed time of each reported metric value. It is not a column of the asset, so the window is never offered on a data source. You do not add this window yourself. It is created with the source, named Record (validio_observed_at), and every Imported Metric validator on the source uses it. If the window is missing, the next Imported Metric validator you create adds it again. The Windows tab is hidden on an imported metrics source.

Validators that accept record windows

Most validators that take a window can use a record window. Numeric Distribution, Categorical Distribution, and Relative Volume validators cannot. Referential Integrity and Reconciliation validators accept one on one side only:

Record windows and time

A validator on a record window reads only records newer than the last one it evaluated. A record that arrives later with an older timestamp is skipped. To include it, rerun the validator from a datapoint before that timestamp. On the validator graph, each datapoint on a record window has the same start and end time: the time in the record’s data-time field. The graph tooltip shows this as a single Observed time instead of a start and end time. Global windows show their datapoints the same way.