influxdata / influxdata/kapacitor

LIMIT and orderby DESC in tick script

Open
#1,941 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

How can I get the last "n" values in tick script. In influxDB query search I could do it through
`order by DESC and LIMIT n`. Where n is the number of last few values I want to retrieve.

Contributor guide

Open the contributing guide

Research direction

Start by checking the Tick script query documentation and existing examples for ordering and limits. Compare the requested `order by DESC` and `LIMIT n` behavior with current Kapacitor support, then identify the relevant query entry point and tests. Done means the last n values can be retrieved with documented behavior and coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
stream-processing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.