apache / apache/iotdb

Wrong result when applying aggregation function on series with * and where clause

Open
#3,058 8 comments 1 reaction 1 assignee Claimed by @Alima777 View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

There is an error with the result of aggregation on series with * and where clause.

Data:

截屏2021-04-24 下午10 17 23

Select result:

截屏2021-04-24 下午10 10 32

截屏2021-04-24 下午10 10 09

The value of count(root.ln.wf02.wt02.temperature) should be 21 but it turned out to be 5 according to result of the `select count(temperature) from root.ln.*.* where temperature > 50.0`. The error also happened with regard to the `avg` function.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.