Survey banner
The Dataiku Community is moving to a new home! We are temporary in read only mode: LEARN MORE

How to pass on inputRoles & outputRoles in recipes.json?

Solved!
cmjurs
Level 3
How to pass on inputRoles & outputRoles in recipes.json?

Hy All - Im trying to write a plugin and it doesn't need input and output datasets defined.

Turns out Dataiku wants at least the OutputRole

outputrole.png

So, I go ahead and leave that one in the json file:

   
//"inputRoles": [
//    {
//        "name": "input_dataset",
//        "arity": "UNARY",
//        "required": false,
//        "acceptsDataset": true
//    }
//],
"outputRoles": [
    {
        "name": "output_dataset",
        "arity": "UNARY",
        "required": false,
        "acceptsDataset": true
    }
],

 

But when I instantiate the plugin in a project, the window to select input and output datasets still pops up. And it also indicates they are required even though I set: "required": false

required datasets.png

Thanks for any help to sort this out

CJ


Operating system used: Ubuntu

0 Kudos
1 Solution
Turribeach

Having recipes without outputs is not currently supported. If you want to understand the reasons behind it read this Product Idea and it's comments (and vote for it if you want it implemented):

https://community.dataiku.com/t5/Product-Ideas/The-ability-to-chain-recipes-without-enforcing-input-...

My suggestion will be that you go ahead and create a dummy output dataset with either some statistics of what your recipe is doing or some logging data so you can have a valid output. 

View solution in original post

0 Kudos
2 Replies
Turribeach

Having recipes without outputs is not currently supported. If you want to understand the reasons behind it read this Product Idea and it's comments (and vote for it if you want it implemented):

https://community.dataiku.com/t5/Product-Ideas/The-ability-to-chain-recipes-without-enforcing-input-...

My suggestion will be that you go ahead and create a dummy output dataset with either some statistics of what your recipe is doing or some logging data so you can have a valid output. 

0 Kudos

PS: This is the second most voted Product Idea at the moment, the first one is Dark Mode:

https://community.dataiku.com/t5/Product-Ideas/idb-p/Product_Ideas/tab/most-kudoed

 

0 Kudos