influxdata / influxdata/influxdb

[feature request] SHOW TAG KEYS/VALUES should accept a WHERE time clause

Open
#5,668 84 comments 246 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1.x area/queries flux/triaged kind/feature-request pm/consumability
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.