You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have a function which process a single partition like "2023-08-01/se/1/orders" and tries to save this back
with overwrite set to True, it removes all the other partitions.
overwrite – If True, any existing partitions will be removed.
Could you elaborate your use case in terms of what you are trying to do? We just have a discussion about kedro-org/kedro#2857 to support versioning of PartitionedDataset, are you trying to overwrite partitions partially, or is that true that versioning of PartitionedDataset is actually what you want?
What I understood is that when i write a partition "2023-08-01/se/1/orders", it should either overwrite that partition or throw error. I was a bit confused when it was deleting different partitions such as "2023-08-01/se/2/orders" I now realize doc says any partition, I suppose you really wanted to delete all partitions.
Description
Im trying to use the
PartitionedDataset
with overwrite parameter set to True but it overwrites a completely different partition.Context
I have the following partitions in my file storage(s3):
"2023-08-01/se/1/orders"
"2023-08-01/se/3/orders"
"2023-08-01/se/2/orders"
When I have a function which process a single partition like "2023-08-01/se/1/orders" and tries to save this back
with overwrite set to True, it removes all the other partitions.
Suspected error is here with recursive param I believe: https://github.com/kedro-org/kedro/blob/main/kedro/io/partitioned_dataset.py#L308
Steps to Reproduce
Expected Result
Before Save:
"2023-08-01/se/1/orders"
"2023-08-01/se/3/orders"
"2023-08-01/se/2/orders"
After Save:
"2023-08-01/se/1/orders"
"2023-08-01/se/3/orders"
"2023-08-01/se/2/orders"
Actual Result
Before Save:
"2023-08-01/se/1/orders"
"2023-08-01/se/3/orders"
"2023-08-01/se/2/orders"
After Save:
"2023-08-01/se/1/orders"
pip show kedro
orkedro -V
): 0.18.11python -V
): 3.10The text was updated successfully, but these errors were encountered: