use structured dataiku variables on dataset configuration
![CamilleGui](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar20.png)
CamilleGui
Partner, L2 Designer, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer Posts: 4 Partner
Hello everyone,
Currently I use variables to define in which GCP projects and datasets the source tables are located.
As there are several times a "project" variable and a "schema" variable I would like to structure this via dictionaries.
Problem: I can't use them in the dataset configurations. Is it possible to use structured variables in the dataset configuration? Or is it only possible in python?
Indeed, in python I can get information :
import json print(json.loads(dataiku.get_custom_variables()['schema'])['mido'])
Thanks for your help.
Answers
-
Sarina Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 317 Dataiker
Hi @CamilleGui
,
Unfortunately variable expansion does not support nested/structured variables. You can unnest variables in Python as you've shown here, or in the DSS formula language. For the UI including dataset configurations you would need to use unnested variables.
Thanks,
Sarina