influxdata / influxdata/kapacitor
Ability to use a variable in groupBy's variadic argument
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
Hello
I want to use a variable in groupBy's argument. My tickscript looks like this:
query('...').groupBy(time(30s), 'tag1', 'tag2')
However, tag1, tag2 is dynamic and I want to use a variable here, something like:
var groups = ['tag1', 'tag2', 'tag3']
query('...').groupBy(time(30s), *groups) --> pythonic syntax
OR
query('...').groupBy(time(30s) + groups)
or something else that lets me dynamically decide the grouping
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 with the groupBy entry point described in the issue and determine how its variadic arguments are currently represented. Clarify the supported syntax and expected behavior for dynamically chosen grouping tags, then define tests that demonstrate the requested variable-based grouping.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- data-engineering
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100