﻿# Dagster partitioned checks target the asset’s own partition scheme

Current Dagster partitioned checks are a preview feature and require matching asset partition definitions; the validation code must read the selected partition’s data.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-dagster-partitioned-check-preview/
Language: en

## Check the document batch that was selected

A daily extraction asset produces separate passage files for each source-ingestion period. Its quality check should examine the selected file, rather than whichever global output path was most recently overwritten. Dagster's current [asset-check guide](https://dagster.io/docs/guides/test/asset-checks) supports partitioned checks but labels the feature preview. Treat that lifecycle status as part of the implementation decision, including possible API changes and gaps in the installed version.

## Match the asset's partition definition

The [check reference](https://dagster.io/docs/api/dagster/asset-checks) exposes `partitions_def` and requires the check's partition definition to match the associated asset when supplied. The partition definition expresses which data slice the check targets. Reusing the actual shared definition is clearer than separately constructing similar-looking calendars and assuming they remain equivalent after later changes to timezone, exclusions or the processing start boundary.

## Resolve storage using the selected key

The [partitions API](https://dagster.io/docs/api/dagster/partitions) defines the schemes and keys used to identify slices. The guide's check example uses its execution context's partition key to choose a stored file. Apply that relationship in the real storage adapter. Partition metadata on a decorator cannot correct a validation function that always reads one unpartitioned path. Such a function may repeatedly inspect the newest batch while appearing to validate many historical slices.

## Separate a slice result from global acceptance

Emit the check result for the requested partition and preserve useful metadata about the artifact actually inspected. A passing result for a recent ingestion period does not establish that older source batches satisfy the same requirements. If a report spans several partitions, define how their individual check outcomes affect report acceptance. [Task contracts](/journal/learn-codex-task-contract/) can state whether complete historical coverage or only current-period validation is required.

## Review the preview behavior against real execution

Inspect a deliberately different pair of partition files and confirm each selected check reads the intended artifact. Keep the selected key and resolved storage location in [tool observations](/journal/learn-codex-tool-observation/). Consult the deployed version's support before relying on preview UI or API behavior. The useful guarantee is specific: the reported validation result corresponds to the selected data slice, with no claim that a preview label or a green asset-level summary validates the entire archive.
