Usage of Shell Recipe

Options
Nikita_19
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
    dima_naboka Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 28 Dataiker
    Options
    Lets 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.pynow = 2021-02-09 08:44:41.548331date 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.
    Screenshot 2021-02-09 at 08.54.15.pngScreenshot 2021-02-09 at 08.54.27.png
Setup Info
    Tags
      Help me…