Coming soon: We’re working on a brand new, revamped Community experience. Want to receive updates? Sign up now!

0 votes

I've written a plugin that connects to an API. This plugin is based on the RaaS example provided here : I provide an argument in the corresponding box, click on "Test and get schema", then the dataset is filled with the data from the API.

How can I do this automatically (using a scenario, for instance), in order to connect to the API every day, pass different arguments, and add data incrementally to the existing dataset? Is it something the plugin should handle or can it be managed within a scenario?

Thanks a lot,




1 Answer

+1 vote
Best answer


Plugins can encompass several types of "Components" (see In the case of a plugin with a "Connector" or "Dataset" component, you can do incremental building by using partitioning: partitioning:

Having said that, you can also achieve this rapidly with a "Custom recipe" component, by using the option "append instead of overwrite"

The recipe would have 1 output and no input. Note that using "append instead of overwrite" is simpler but it may lead to duplicates and wrong data being inserted.

Generally speaking when working with APIs, it is recommended to take into account these cases in your code:

- API network failure

- Wrong or empty data being sent by the API

- Duplicate results from the API



selected by
Thanks for your answer! I first tried your solution using a custom recipe, but I found it more convenient to use a custom scenario in the end : this scenario writes into new partitions everyday and report errors such as empty data (as you mentioned).
1,337 questions
1,362 answers
11,912 users

©Dataiku 2012-2018 - Privacy Policy