Adrien
06/05/2024, 11:25 AMNok Lam Chan
06/05/2024, 11:27 AMNok Lam Chan
06/05/2024, 11:28 AMDomenico Collacciani
06/05/2024, 11:41 AMTypeError: IncrementalDataset.__init__() got an unexpected keyword argument 'filepath'
in customWds the commented part is a working solution but we don't get whyNok Lam Chan
06/05/2024, 1:37 PMNok Lam Chan
06/05/2024, 1:38 PMfrom kedro.io import IncrementalDataSet
# these credentials will be passed to:
# a) 'fsspec.filesystem()' call,
# b) the dataset initializer,
# c) the checkpoint initializer
credentials = {"key1": "secret1", "key2": "secret2"}
data_set = IncrementalDataSet(
path="<s3://bucket-name/path/to/folder>",
dataset="pandas.CSVDataSet",
credentials=credentials
)
loaded = data_set.load() # loads all available partitions
# assert isinstance(loaded, dict)
data_set.confirm() # update checkpoint value to the last processed partition ID
reloaded = data_set.load() # still loads all available partitions
Nok Lam Chan
06/05/2024, 1:39 PMpath
as an argument but not filepath
Domenico Collacciani
06/05/2024, 1:52 PM