I want to add IF expression to my aggregation query. so if impression field is greater than 1, than count this tagId for every tagId. The final result is show for every tagId his total count of impressions.
I want the tagId 2 will report 40,000 impression total. I want to count for every tagId his total impression. If the impression is greater than 1, it will be count (not sum) as only one. The final result is the total "count" of impressions per tagId.
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.