Plugin to rename final datasets

Yasmine
Level 3
Plugin to rename final datasets

Hello,

Please, I need a plugin that renames all my final files of my project DSS stored in managed filesytem and put them under this name "old name-file_today" 

For example, if the name of a file is "Output-dataset", the new name will be "Output-dataset_17_02_2022"

 

Thank you in advance for your return,

Best regards,

Yasmine

0 Kudos
3 Replies
tgb417

@Yasmine ,

I’m not clear if there is a plugin that exists that does exactly what you are trying to do.  That said the Dataiku API should be able to do this with a few lines of code.  

below is the documentation 

https://doc.dataiku.com/dss/latest/python-api/managed_folders.html 

there are a number of conversations here in the community on similar topics.

--Tom
0 Kudos
HarizoR
Developer Advocate

Hi Yasmine,

Renaming Datasets is not often seen as a good practice since it will break other parts of the Flow (see for example this post  where a similar question was raised).

If your use-case is to somehow tag the "leaf nodes" of your Flow with the current date, you can follow the advice from the previously linked post and rely on Tags. Traversing the Flow programmatically is also possible using the corresponding Flow API. 

The final result could come in the form of a Macro that would update the tags of all relevant Datasets when executed. If needed, you can automate its execution through a Scenario, e.g. to run every day.

Hope this helps!

Best,

Harizo

0 Kudos
ktgross15
Dataiker

Hi @Yasmine 

FYI dataset renaming is now natively (and safely!) supported 🙂

As of version 11.2, you can rename a dataset either by right clicking on the dataset, or clicking on the dataset, and then "rename" from actions tab of the flow right panel (see screenshot)

Best,

Katie

 

0 Kudos