Survey banner
Switching to Dataiku - a new area to help users who are transitioning from other tools and diving into Dataiku! CHECK IT OUT

Now() function for recipe

Level 2
Now() function for recipe


I've tried to use now() function inside a recipe.

The idea was to be able to identify each run by its timestamp.

Now I realize inside a run now() can take several values, particularly considering it takes milliseconds or something.

Is there a way to have a single now() value for each recipe run, like now() in SQL.

(I'd use SQL recipe but at the moment I'm not allowed in that particular infrastructure).

0 Kudos
2 Replies

What exactly are you trying to achieve? What's the requirement/goal?

0 Kudos


Welcome to the Dataiku Community.

I'm not is a place to look at this in detail.  Here are a few random ideas.

You might look at saving a now() as a local project variable and then re-using that previously saved variable for each row.  Or see if there is already a variable that contains a run time for the recipe.  This might be done as part of a senario.

Another thing you might try is to do some rounding of the data and time.  Such that you get one value but the values would be different each time.  This latter approach might be a good minimal viable option.

Or if you data is stored in a SQL database use an actual SQL recipe to get the behavior you are accustomed to.  

I think in this case I might use the latter approach using a SQL recipie.

0 Kudos