I have two fields that are epoch timestamps. I want to take the first field and subtract the second field. If the results are larger than a certain number, I want to write a value into a new field.
Basically an IF statement something like IF (a - b) > 2592000 #the equivalent to 30 days epoch time
Then write value some text to field.
This is the code I have. I verified that I am getting two values set as integers for the times, but I don't think I have the IF statement correct and/or the THEN write statement.
Strange that I cannot get my code to work. I am going to try your example as it looks far better. I like how you set the values to variables, instead of how i set them to fields then had to remove them after.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.