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

TechniclabErdmann picture TechniclabErdmann  路  80Comments

mgf909 picture mgf909  路  72Comments

scotloach picture scotloach  路  63Comments

beckettsean picture beckettsean  路  81Comments

toddboom picture toddboom  路  69Comments