Skip to content

Commit

Permalink
Added _dataset_patterns and _default_pattern to _config_resolver to a…
Browse files Browse the repository at this point in the history
…void breaking change

Signed-off-by: Elena Khaustova <[email protected]>
  • Loading branch information
ElenaKhaustova committed Sep 11, 2024
1 parent 9a4db18 commit 0a6946a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kedro/io/data_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ def __init__( # noqa: PLR0913
>>> catalog = DataCatalog(datasets={'cars': cars})
"""
self._config_resolver = config_resolver or CatalogConfigResolver()

# Kept to avoid breaking changes
if not config_resolver:
self._config_resolver._dataset_patterns = dataset_patterns or {}
self._config_resolver._default_pattern = default_pattern or {}

self._datasets: dict[str, AbstractDataset] = {}
self.datasets: _FrozenDatasets | None = None

Expand Down

0 comments on commit 0a6946a

Please sign in to comment.