I want to get the current timestamp of each row.
I use the following code
dataframe.withColumn("current_date",current_timestamp());
But current_timestamp() is evaluated prior to serialisation so I will always get same date.
How can I evaluate current_timestamp() for each row of dataframe.
I need your help.
Thank you.