influxdata / influxdata/influxdb

ERR: invalid time comparison operator: !=

Open
#24,187 3 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.