Plugin to rename final datasets

Options
Yasmine
Yasmine Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 14 ✭✭✭

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

Tagged:

Answers

  • tgb417
    tgb417 Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron 2020, Neuron, Registered, Dataiku Frontrunner Awards 2021 Finalist, Neuron 2021, Neuron 2022, Frontrunner 2022 Finalist, Frontrunner 2022 Winner, Dataiku Frontrunner Awards 2021 Participant, Frontrunner 2022 Participant, Neuron 2023 Posts: 1,595 Neuron
    Options

    @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.

  • HarizoR
    HarizoR Dataiker, Alpha Tester, Registered Posts: 138 Dataiker
    Options

    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

  • Katie
    Katie Dataiker, Registered, Product Ideas Manager Posts: 105 Dataiker
    Options

    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

Setup Info
    Tags
      Help me…