I have records that I would like to classify into quarters based on the timestamp value.
The logic I am shooting for is:
If the month of the timestamp is 1, 2, or 3 then add_field { "Quarter" => "Q1"}
If the month of the timestamp is 4,5 or 6 then add_field { "Quarter" => "Q2"}
and so on.
How do I compare only the month value of my timestamp to make this if-else clause?
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.