get_dataset_from_catalog¶
kedro_dagster.utils.get_dataset_from_catalog(catalog, dataset_name)
¶
Retrieve a dataset instance from a Kedro catalog across versions.
This helper avoids relying on the private _get_dataset when it is not
available (as in some Kedro 1.x catalog wrappers) and falls back to
mapping-like access when possible.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
catalog
|
CatalogProtocol
|
Kedro catalog or mapping-like object. |
required |
dataset_name
|
str
|
Name of the dataset to retrieve. |
required |
Returns¶
| Type | Description |
|---|---|
Any or None
|
Dataset instance if found, else |
See Also¶
kedro_dagster.utils.is_nothing_asset_name :
Uses this to check for sentinel Nothing datasets.
kedro_dagster.catalog.CatalogTranslator :
Translates catalog datasets into Dagster IO managers.