apache / apache/iotdb

Hope select function, "top_k" and "bottom_k", could support "group by level"

Open
#3,905 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

### Discussed in https://github.com/apache/iotdb/discussions/3888

I find we can use `group by level` to get the effect of merging devices when using aggregation function. Hope select function, `top_k` and `bottom_k`, could support `group by level` as well.
![image](https://user-images.githubusercontent.com/51618159/131989804-8b9e578a-8757-490e-ad44-e5be39864092.png)

Contributor guide

Open the contributing guide

Research direction

Start with the linked discussion at https://github.com/apache/iotdb/discussions/3888 and compare the existing `group by level` behavior for aggregation functions with `top_k` and `bottom_k`. Done means the two select functions support grouping by level with behavior consistent with aggregation queries, including the case illustrated in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.