[Bug] 使用 GROUP BY LEVEL 搭配多個聚合函數時,結果出現不一致(sum / avg / count 異常)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Domain
- databases
Research direction
Start by reproducing the four GROUP BY LEVEL aggregation combinations described for IoTDB 2.0.7, using the screenshots to compare sum, avg, and count. The report does not name source files, tests, or provide executable SQL and sample data; done means the same input produces consistent aggregates across all combinations, with regression coverage added in the relevant query test area.
Written by the indexing model from the issue text.
Description
Search before asking
- I searched in the issues and found nothing similar.
Version
2.0.7
Describe the bug and provide the minimal reproduce step
在 IoTDB 中使用 GROUP BY LEVEL 查詢時,當同時使用多個聚合函數(如 sum、avg、count)會出現結果不一致的情況。
具體問題如下:
- sum(cpu) 單獨查詢與搭配其他 aggregation 時,結果不同
- avg(cpu) 與 count(cpu) 的結果也會異常變化
- 同一筆資料在不同 aggregation 組合下,計算基準似乎不一致
Query 1: 僅查 sum(結果正常)
Query 2: sum + avg(sum 變成 2 倍)
Query 3: sum + avg + count(全部異常)
Query 4: sum + count(結果又正常)
What did you expect to see?
- 不論 aggregation function 組合如何:
- sum(cpu) 應該一致
- count(cpu) 應該一致
- avg(cpu) 應滿足:
👉 avg = sum / count
- 多個 aggregation 應基於同一批資料計算
What did you see instead?
Anything else?
No response
Are you willing to submit a PR?
- I'm willing to submit a PR!
- Dominant language
- Java
- Stars
- 6.4k
- Forks
- 1.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 284
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from apache/iotdb
-
[Bug] Python NumpyTablet silently drops trailing zero bytes from BLOB valuesPossibly taken @DaZuiZui claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
[Bug] sbin/replace-conf-from-env.sh word-splits the whole environment and corrupts iotdb-system.propertiesPossibly taken @anishmehta24 claimed this 69 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
apache/iotdb#18655 · 1 reaction ·
Maintainers usually reply within 1 day
-
IoTDB Edge: stop-edge.sh does not stop its own process when IOTDB_HOME is set, and reports successPossibly taken @PDGGK claimed this 88 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
[Bug] findColumn throws NullPointerException instead of SQLException for an unknown column namePossibly taken @PDGGK claimed this 130 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
Android Bug Core Drape
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
organicmaps/organicmaps#14449 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openhab/openhab-addons#22512 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
objectionary/lints#1871 ·
Maintainers usually reply within 1 day
-
help wanted maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
apache/maven-war-plugin#694 ·
Maintainers usually reply within 1 day
-
help wanted maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/maven-resolver-ant-tasks#219 ·
Maintainers usually reply within 1 day