Influxdb: GROUP BY requires at least one aggregate function

Created on 27 Mar 2019  路  2Comments  路  Source: influxdata/influxdb

While executing this query :
Query queryObject = new Query("Select * from metric where \"name\" = "+"'"+nameMetric+"' and time >= '"+fD+"' AND time <= '"+tD+"' GROUP BY time(12m)" , dbName);

I'm getting this error:
Exception in thread "main" org.influxdb.InfluxDBMapperException: InfluxDB returned an error with Series: GROUP BY requires at least one aggregate function

wontfix

All 2 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dtouzeau picture dtouzeau  路  3Comments

Raniz85 picture Raniz85  路  3Comments

jonira picture jonira  路  4Comments

binary0111 picture binary0111  路  3Comments

acarapetis picture acarapetis  路  3Comments