Extracting build date of a shared dataset

shak99 Registered Posts: 3 ✭✭✭

Hi All,

How do you extract the build date of a shared dataset?

Normally with a dataset, you're able to view the build date in the status tab, however for shared datasets that have been shared from another flow, it doesn't show the build date in the status tab. Is there anyway to extract the build date from the shared dataset? Preferably through python, however open to other suggestions.

Operating system used: Windows


  • Alexandru
    Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,209 Dataiker
    edited July 17

    Hi, in DSS 9.0.5 and 10 you will be able to see the last build date under info even for Shared datasets, can you confirm what DSS version you are on?

    Screenshot 2021-12-23 at 15.00.08.png

    You can also retrieve the last build date from the, "Internal stats" dataset, in "Objects state" view.

    Via the API , you have to create a object with shared/foreign project and dataset name.

    import dataiku
    import dataikuapi
    project = client.get_default_project()
    client = dataiku.api_client()
    project = client.get_default_project()
    foreign_project_name = "ProjectID_of_shareddataset"
    foreign_dataset_name = "shared_dataset_name"
    dataset_foreign = dataikuapi.dss.dataset.DSSDataset(client, foreign_project_name, foreign_dataset_name)
    #print("Name: %s" % dataset_foreign.name)
    last_metrics = dataset_foreign.get_last_metric_values()
    last_build_datetime = last_metrics.get_metric_by_id("reporting:BUILD_START_DATE")

    Screenshot 2021-12-23 at 15.32.42.png

Setup Info
      Help me…