1

我正在尝试将以下 InfluxDB 查询与时间和字段值的条件一起使用,但它不返回任何结果:

> select * from something where (time > 1 and time < 20000) or (def > 999)

但是,当我删除最后一个条件时,我的测量值会返回:

> select * from something where (time > 1 and time < 20000)
name: something
time  abc def id
----  --- --- --
10000 444 555 123

这是 InfluxDB 中的错误,还是我做错了什么?我在文档中找不到任何内容表明时间和现场条件无法组合...我尝试从 1.7 升级到 1.8。

自己尝试一下:

$ influx
Connected to http://localhost:8086 version 1.8.0
InfluxDB shell version: 1.8.0
> drop database testdb
> create database testdb
> use testdb
Using database testdb
> insert something,id=123 abc=444i,def=555i 10000
> select * from something where (time > 1 and time < 20000) or (def > 999)
4

0 回答 0