influxdata / influxdata/influxdb
[feature request] SHOW TAG KEYS/VALUES should accept a WHERE time clause
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Rather than update `DISTINCT()` to accept tags (https://github.com/influxdata/influxdb/issues/3880), we could accomplish much the same goal if the `SHOW TAG VALUES` query respected a `WHERE time` clause. SHOW TAG VALUES already returns the deduplicated set of values.
It is not trivial, since the query can no longer be answered directly from the metastore, but it seems easier than making functions accept tags, which is a totally new code path.
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 tracing the SHOW TAG VALUES query path and how it currently reads from the metastore. Define completion as applying a WHERE time clause while preserving the existing deduplicated tag-value results, then compare the approach with the DISTINCT() alternative described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100