Partitioning in Dataiku DSSWatch now

Custom variables type always string ?

Level 2
Custom variables type always string ?
Hi,

I have defined some global variables in a flow, and these are integers, lists and stings. Yet when I use dataiku.get_custom_variables() in python everything is a string.

Doesn't JSON support these types?



Cheers,

Dany
0 Kudos
3 Replies
Dataiker
Dataiker

Hi,



To do what you want, you can use the argument "typed" as shown below:




dataiku.get_custom_variables(typed = True)


Hope it helps,



Alex

Level 2
Author
Merci !

That is so useful. Please add this detail to the documentation.

Cheers,
Dany
0 Kudos
Dataiker
Dataiker
Thanks for the feedback, we will add this to our documentation backlog.
0 Kudos
Labels (1)