influxdb 连续查询以将数据移动到保留策略,选择具有许多转换的多个值
influxdb continuous query to move data to a retention policy selecting multiple values with many transforms
您好,我正在尝试在 influxDB 1.8 版中进行连续查询。我注意到文档的 none 有效,首先是因为我需要在没有 return 字符的情况下将连续查询输入终端(文档显示 return 字符可能是为了使其更易于阅读), 但也放了一个逗号并添加了另一个 select 语句给我一个解析错误。这是我的命令和解析器错误:
CREATE CONTINUOUS QUERY "old_data_cc" ON "admin" BEGIN SELECT mean("value") as "mean", SELECT min("value") as "min", SELECT max("value") as "max" INTO "old_data" FROM "default" GROUP BY time(1h) END
ERR:错误解析查询:找到 SELECT、预期标识符、字符串、数字、第 1 行的布尔值、字符 84
不需要多个 SELECT
。尝试:
CREATE CONTINUOUS QUERY "old_data_cc" ON "admin" BEGIN SELECT mean("value") as "mean", min("value") as "min", max("value") as "max" INTO "old_data" FROM "default" GROUP BY time(1h) END
您好,我正在尝试在 influxDB 1.8 版中进行连续查询。我注意到文档的 none 有效,首先是因为我需要在没有 return 字符的情况下将连续查询输入终端(文档显示 return 字符可能是为了使其更易于阅读), 但也放了一个逗号并添加了另一个 select 语句给我一个解析错误。这是我的命令和解析器错误:
CREATE CONTINUOUS QUERY "old_data_cc" ON "admin" BEGIN SELECT mean("value") as "mean", SELECT min("value") as "min", SELECT max("value") as "max" INTO "old_data" FROM "default" GROUP BY time(1h) END
ERR:错误解析查询:找到 SELECT、预期标识符、字符串、数字、第 1 行的布尔值、字符 84
不需要多个 SELECT
。尝试:
CREATE CONTINUOUS QUERY "old_data_cc" ON "admin" BEGIN SELECT mean("value") as "mean", min("value") as "min", max("value") as "max" INTO "old_data" FROM "default" GROUP BY time(1h) END