Influxdb XDB错误:不支持将多个选择器函数与标记或字段混合使用
我试图在我的XDB数据上创建一个连续查询,因此我试图事先选择数据,以确保一切正常。以下查询工作正常:Influxdb XDB错误:不支持将多个选择器函数与标记或字段混合使用,influxdb,influxql,Influxdb,Influxql,我试图在我的XDB数据上创建一个连续查询,因此我试图事先选择数据,以确保一切正常。以下查询工作正常: SELECT last("close") as close, pair, base, quote FROM "one_day"."ohlc_1" GROUP BY time(15m), pair, base, quote 这一条同样有效: SELECT last("close")
SELECT
last("close") as close,
pair,
base,
quote
FROM "one_day"."ohlc_1"
GROUP BY time(15m), pair, base, quote
这一条同样有效:
SELECT
last("close") as close,
min("low") as low,
max("high") as high,
first("open") as open,
sum("volume") as volume,
sum("count") as count,
mean("vwap") as vwap
FROM "one_day"."ohlc_1"
GROUP BY time(15m), pair, base, quote
但是,当我尝试将这两者结合起来以获得标记和正确的值时,出现了一个错误:
SELECT
last("close") as close,
min("low") as low,
max("high") as high,
first("open") as open,
sum("volume") as volume,
sum("count") as count,
mean("vwap") as vwap,
pair,
base,
quote
FROM "one_day"."ohlc_1"
GROUP BY time(15m), pair, base, quote
InfluxDB错误:不允许混合聚合查询和非聚合查询
支持
是否真的可以选择一个聚合值和组,但不能选择多个