Delete partitions in DSSManagedFolder
Options
![tomas](https://us.v-cdn.net/6038231/uploads/lithium_attachments/n5261i79DA1BFFD65C0DD1.png)
tomas
Registered, Neuron 2022 Posts: 120 ✭✭✭✭✭
Hi,
having an object handler of type dataikuapi.dss.managedfolder.DSSManagedFolder how can I remove all partitions except the last N ones? The dataiku.core.managed_folder.Folder has nice methods list_partitions() and clear_partition(), but this one does not provide.
Should I get the definition of partition scheme, use filePathPattern and list the contents of the folder? I think it's doable, but looking for a shorter/simpler solution
Thanks
T.
having an object handler of type dataikuapi.dss.managedfolder.DSSManagedFolder how can I remove all partitions except the last N ones? The dataiku.core.managed_folder.Folder has nice methods list_partitions() and clear_partition(), but this one does not provide.
Should I get the definition of partition scheme, use filePathPattern and list the contents of the folder? I think it's doable, but looking for a shorter/simpler solution
Thanks
T.
Tagged:
Answers
-
Hi,
This feature is not available through this class. We'll consider adding it.