influxdata / influxdata/kapacitor
influxDBOut().tag() eats away first letter 't' or 's' from a tag name
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
First `.tag()` method for influxDBOut() node removes first letter 't' from a tag name (it's weird, I know!)
Example code:
data = stream |
|from()
.measurement('example')
|influxDBOut()
.database('output')
.measurement('result')
.create()
.tag('test_tag', 'foobar')
Expected result:
Tag 'test_tag' in `result`.
Actual result: Tag 'est_tag' in `result`
kapacitor version: 1.5.1-1
Upd: same bug is with starting 's' for fields. f.e. state_duration become a 'tate_duration'.
Contributor guide
Research direction
Reproduce the issue with the provided influxDBOut() pipeline and inspect the implementation behind the .tag() entry point. Verify that tag names beginning with 't' and field names beginning with 's' retain their first characters, then confirm the expected names are written to the result measurement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend, data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100