Using dataiku.dku_flow_variables in Version 9
PARTEEK
Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 23 ✭✭✭✭
I am using version 9 of dataiku and it says dku_flow_variable is not available. How do I access partition labels in dataiku V9?
Tagged:
Answers
-
Hi,
I am on V9 and the below does work for me in the python recipe
assuming mydate is the name of the parition
If your case is different then please share some details so that the community can help.partid=dataiku.dku_flow_variables["DKU_DST_MYDATE"]
https://doc.dataiku.com/dss/latest/partitions/variables.html#python
-
I found the error. It works in script but not in notebook.
-
Yes that is correct.
Partitions only work in a flow.
Hence the variable will only be available to recipes that are run in the flow and will not work on notebook.