API Reference

Generated from the source, these pages document every public name and its parameters. The guide tells the story around them.

Core

dd.asset builds an asset from a schema, and build_error_rows_spec adds that asset’s error rows to the asset graph. build_collection_checks returns asset checks that report a Collection’s collection filters on its member assets. build_rule_checks returns asset checks that report a schema’s rules on an asset dd.asset did not build.

asset()

Turn the decorated function into an asset that validates the frame it returns against schema.

build_error_rows_spec()

Return an asset spec that adds an asset’s error rows to the asset graph.

build_collection_checks()

Return an asset check for each collection filter of collection on each of its member assets.

build_rule_checks()

Return an asset check for each of the schema’s rules on asset, plus the column-schema check.

Granularity

How many asset checks report a schema’s rules: one per rule at rule, and at column one per column with rules plus one per schema-level rule.

Data

OrdersSchema, storefront_orders and marketplace_orders are the example data that most examples on this site use, and ParquetIOManager is the IO manager they write through. The package ships them, so an example copied from an editor hover runs as written.

data.OrdersSchema

A customer order line: one row per product on one order.

data.storefront_orders

The storefront’s twelve order lines for the first week of August 2026, every one of which passes OrdersSchema.

data.marketplace_orders

The storefront’s lines plus eight marketplace lines, each of which fails at least one rule of OrdersSchema.

data.ParquetIOManager

An IO manager that writes each output to a Parquet file under base_dir.

Testing

DirectInvocationResult.from_invocation separates what a direct invocation of an asset built with dd.asset yields into its materialization and its check results.

testing.DirectInvocationResult

What one direct invocation of an asset built with dd.asset yielded.

Hand-wiring

dd.asset calls most of these functions. Use them to build a @dg.asset that dd.asset cannot build.

wiring.get_column_schema_metadata()

Return the metadata that fills an asset’s Columns tab from the schema.

wiring.get_table_schema()

Return the schema as the dg.TableSchema that Dagster’s Columns tab shows.

wiring.get_code_version()

Return the sha1 hexdigest of the schema’s columns and rules, which dd.asset uses as the asset’s code version.

wiring.build_asset_check_specs()

Return the asset check specs for the schema’s rules, plus the column-schema check.

wiring.evaluate_checks()

Yield a result for each check build_asset_check_specs declares, without writing any rows.

wiring.get_check_name_for_rule()

Return the asset check name for the Dataframely rule named rule_name.

wiring.stream_results()

Validate a frame and yield the asset’s materialization and check results.

wiring.ErrorRowsWriter

A writer: a function that writes the error rows and returns the error-rows address, such as an asset key or a file path, as a string.

wiring.build_io_manager_writer()

Return a writer that passes the error rows to the asset’s own IO manager, or to the one error_rows_io_manager_key names.

wiring.build_file_writer()

Return a writer that writes the error rows to a parquet file under error_rows_dir.

wiring.get_error_rows()

Return the rows that failed an "error" rule, as a writer receives them, with one rule column per rule.

wiring.get_error_rows_key()

Return the default error-rows key of an asset.

wiring.get_error_rows_path()

Return the path of the parquet file build_file_writer writes an asset’s error rows to.

wiring.validate_error_rows_key()

Raise if an asset already materializes the error-rows key.

Errors

DagsterDataframelyError is the base class of every other error this package defines.

errors.DagsterDataframelyError

Base class for every error this package defines.

errors.CollectionNotSupportedError

schema= received a dy.Collection.

errors.InvalidMembersError

members= does not map a Collection’s members to unpartitioned assets.

errors.FailurePropagationError

A Collection member sets propagate_row_failures=True.

errors.ReservedColumnError

A column name is in the reserved dy_ namespace.

errors.InvalidColumnNameError

A column name has a character Dagster does not allow in an asset check name.

errors.CheckNameCollisionError

Two rules produce the same asset check name.

errors.InvalidSeverityError

A schema declares a severity this package cannot read.

errors.InvalidSettingError

A setting has a value it does not allow.

errors.MaterializeResultValueError

A returned dg.MaterializeResult has no frame in value.

errors.MaterializeResultFieldError

A returned dg.MaterializeResult sets asset_key or check_results.

errors.ColumnSchemaError

A frame’s columns or dtypes do not match the schema.

errors.ValidationAbortError

A row failed an "error" rule and the asset has filter=False, so it writes nothing.

errors.NoValidRowsError

Every row failed an "error" rule, so the run wrote only the error rows.

errors.ErrorRowsKeyCollisionError

An asset already materializes the error-rows key.

errors.ErrorRowsDirError

Error rows need writing, and nothing sets error_rows_dir.