Usage of Shell Recipe
Nikita_19
Registered Posts: 1 ✭✭✭
Hi Team,
I would like to know the advantages and limitations of shell recipe. As I didn't find the documentation much fruitful, can you please share some more insights/details about the recipe.
Answers
-
dima_naboka Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 28 DataikerLets say you have print_date.py file in DSS DATA_DIR folder. If you want to incorporate file output into your pipeline you can introduce shell recipe.
$ python print_date.py now = 2021-02-09 08:44:41.548331 date and time = 09/02/2021 08:44:41
In the test below I'm using echo to rename the column and add a custom row of text to the output. By using environment variables I can print current project and cd to DSS DATA_DIR folder to then run my print_date.py file.