A record window makes every record its own window in Validio, dated by a timestamp field. Learn how to add one and which validators use it.
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
Navigate to the source’s details page and click the Windows tab.
Click + New window.
Under Select type, choose Record window. If the source does not support record windows, the type is disabled. Hover over it to see why.
Under Configuration,
Select the Data-time field, the timestamp field that dates each record.
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.
(Optional) Under Advanced, configure partition filtering and segment retention.
Click Create window.
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
Field
Values
Description
Name
String
Identifier for the window, used when configuring validators.
Data-time field
Field name
The timestamp field that dates each record. Cannot be changed after the window is created.
Partition field
Field name
(Optional, data warehouse sources) Adds a filter on the partition column of a partitioned table.
Partition lookback
Number and unit
(Optional) How far back from the window start time to read data.
Segment retention period (days)
Number
(Optional) Maximum number of days to keep segments when new data has not been seen.
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:
On the left validator only. The right validator must then use a global window.
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.