此查询有效:
SELECT criteriaMetric, criteriaOperator, criteriaErrorThreshold, metricStatus
FROM "qualityGateMetricValue" GROUP BY criteriaMetric, criteriaOperator, criteriaErrorThreshold, metricStatus
但我想要的是计算每个不同组合的出现次数,就像我在 SQL 中所做的那样:
SELECT criteriaMetric, criteriaOperator, criteriaErrorThreshold, metricStatus, count(*)
FROM "qualityGateMetricValue" GROUP BY criteriaMetric, criteriaOperator, criteriaErrorThreshold, metricStatus
这给出了:
"error":"mixing aggregate and non-aggregate queries is not supported"
有没有办法在 InfluxQL 中执行最后一个 SQL 查询?