influxdata / influxdata/influxdb
ERR: invalid time comparison operator: !=
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Dear Influx-Team,
I run into following issue:
Steps to reproduce:
I'm using Influx 1.8.
The documentation lists != as valid operator (https://docs.influxdata.com/influxdb/v1.8/query_language/explore-data/#time-syntax)
When I run a simple query, e.g.
SELECT * FROM "sensors" WHERE time >= '2022-08-30 22:00:00' AND time <= '2022-08-30 23:59:59' AND time != '2022-08-30 22:59:59'
I get: ERR: invalid time comparison operator: !=
I could try to add some sample data if required.
Expected behavior:
I would expect Influx to return the queried time range without the specified time stamp
Actual behavior:
I get: ERR: invalid time comparison operator: !=
Environment info:
- System info: Linux 5.19.0-1022-aws x86_64
- InfluxDB version: InfluxDB v1.8.10 (git: 1.8 688e697c51fd)
- Other relevant environment details: Container runtime, disk info, etc
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the documented InfluxDB 1.8 query with the != time predicate and compare it with the time-syntax documentation linked in the report. Trace where time comparison operators are parsed or validated. Done means the query returns the requested range while excluding the specified timestamp, with regression coverage for this case.
Written by the indexing model from the issue text.
Assessment
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100