get_match_pattern_from_catalog_resolver¶
kedro_dagster.utils.get_match_pattern_from_catalog_resolver(config_resolver, ds_name)
¶
Return the matching dataset pattern from a CatalogConfigResolver.
Kedro 1.x exposes match_dataset_pattern while older Kedro versions
exposed match_pattern. This helper abstracts over that difference and
returns the first matching pattern string or None when no match is
found or when the API is unavailable.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
config_resolver
|
CatalogConfigResolver
|
An instance of Kedro's CatalogConfigResolver. |
required |
ds_name
|
str
|
Dataset name to match against resolver patterns. |
required |
Returns¶
| Type | Description |
|---|---|
str or None
|
The first matching pattern or |
See Also¶
kedro_dagster.utils.get_partition_mapping :
Uses pattern matching to resolve partition mappings.