influxdata / influxdata/influxql
Disjunctions on time ranges should result in error instead of treating as conjunction
- Dominant language
- Go
- Stars
- 170
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
A query like:
```
select mean(usage_user) from cpu where hostname = 'host_99' and time > 1 or time <= 1;
```
is treated the same as if the 'or' were an 'and'. This means it returns no results whereas it should return all rows. If disjunctions on time aren't meant to be supported, an error should be returned instead of an empty result set.
Contributor guide
No contributing guide indexed for this repository
Research direction
No files or tests are named. Reproduce the shown query and trace how the parser or query handling processes the disjunction of time predicates. Add a regression test for this query and make the behavior return an error rather than an empty result when such disjunctions are unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100