anyHeavy

Selects a frequently occurring value using the heavy hitters algorithm. If there is a value that occurs more than in half the cases in each of the query’s execution threads, this value is returned. Normally, the result is nondeterministic.

  1. anyHeavy(column)

Arguments

  • column – The column name.

Example

Take the OnTime data set and select any frequently occurring value in the AirlineID column.

  1. SELECT anyHeavy(AirlineID) AS res
  2. FROM ontime
  1. ┌───res─┐
  2. 19690
  3. └───────┘