Inconsistency when setting version via versioned
flag and dataset parameter
#4326
Labels
Component: Framework
Issue/PR that addresses core framework functionality
Component: IO
Issue/PR addresses data loading/saving/versioning and validation, the DataCatalog and DataSets
Milestone
Description
Currently, we have several options to mark dataset as versioned.
Option 1 - set
versioned: true
via configurationOption 2 - pass
version
object to dataset constructorOut
KedroDataCatalog.from_config
method allow to passload_versions
andsave_versions
:kedro/kedro/io/kedro_data_catalog.py
Line 267 in 075d59b
However, the condition required to set version is
versioned
flag set toTrue
:kedro/kedro/io/core.py
Line 542 in 075d59b
So we have Option 3 to set the version via
KedroDataCatalog.from_config
and for that both versioned flag andload_versions
/save_version
should be set.Context
load_versions
/save_version
parameters are ignored when creating catalog viaKedroDataCatalog.from_config
if versioned flag is not set.load_versions
/save_version
via config.versioned
flag when , but most - don't:kedro/kedro/io/cached_dataset.py
Line 89 in 075d59b
Possible Implementation
load_versions
or/andsave_version
providedPossible Alternatives
Make only step two as a temporal solution without breaking change.
The text was updated successfully, but these errors were encountered: