0 votes
Hi,

 I am searching for an example how to create Prepare recipe, in this documentation there is no mention about Prepare recipes:

https://doc.dataiku.com/dss/latest/python-api/rest-api-client/recipes.html#dataikuapi.dss.recipe.CodeRecipeCreator

Is there a helper object for this kind of recipe? If not, is there any other way how to create an (empty - no transformation) prepare recipe from an existing dataset into a new dataset?

Thanks
by
reopened by
Tried to use:
dataikuapi.dss.recipe.SingleOutputRecipeCreator( 'prepare', recipe_name, prj ).with_input(inp_dataset_name).with_new_output(out_dataset_name, connection, format_option_id='PARQUET_HIVE').build()
But no luck:
DataikuException: com.dataiku.common.server.DKUControllerBase$MalformedRequestException: Could not parse a RecipeCreationInfo from request body

1 Answer

+1 vote
Best answer
Hi Tomas,

The type argument should be "shaker", not "prepare" in the code snippet you included.

We have already logged the request to add additional code samples on this part of the Dataiku API, see: https://doc.dataiku.com/dss/latest/python-api/rest-api-client/recipes.html.

Cheers,

Alex
by
selected by
1,117 questions
1,157 answers
1,302 comments
11,022 users

┬ęDataiku 2012-2018 - Privacy Policy