important

Sample usage

  1. SELECT
  2. TIME_BUCKET('5 MIN', time_column) AS interv,
  3. AVG(temperature) as avg_temp,
  4. first(temperature,time_column) FILTER(WHERE time_column IS NOT NULL) AS beg_temp,
  5. last(temperature,time_column) FILTER(WHERE time_column IS NOT NULL) AS end_temp
  6. FROM sensors