apache / apache/iotdb

Discrepancy in Count Query Results Between Grafana-Plugins and IoTDB CLI

Đang mở
#11,711 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
6.4k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
115

Mô tả

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Version

- IoTDB 1.2.2 Standalone
- IoTDB Grafana Plugin 1.0 (Grafana interface)
- Grafana 10.2.2

### Describe the bug and provide the minimal reproduce step

### Problem Description
When executing a `SELECT COUNT(DISTINCT())` query, there's an observed inconsistency in the returned count value between Grafana-Plugins and the IoTDB CLI. While the IoTDB CLI returns the expected and accurate count, the Grafana-Plugins display an incorrect count number.

### IoTDB CLI Result (Correct Count)
![IoTDB CLI Result](https://github.com/apache/iotdb/assets/126893672/47de14d3-4f66-4556-b23c-b9888427ad6b)
![IoTDB CLI Query](https://github.com/apache/iotdb/assets/126893672/e36e88ee-1458-46aa-b723-562d74f85dce)

### Grafana Explore Query (Incorrect Count)
![Grafana Explore Query](https://github.com/apache/iotdb/assets/126893672/44a48690-4fd0-4cc3-b681-664f4d77bf47)
![Grafana Explore Result](https://github.com/apache/iotdb/assets/126893672/1449ccc4-1c50-438d-9904-d3158ffaad14)

### Steps to Reproduce
1. Execute the `SELECT COUNT(DISTINCT())` query using IoTDB CLI.
2. Execute the same query using Grafana-Plugins within the Grafana Explore interface.
3. Compare the returned count values.

### What did you expect to see?

### Expected Behavior
The count value returned by Grafana-Plugins should align with the count value retrieved using IoTDB CLI for the same `COUNT(DISTINCT())` query.

### What did you see instead?

### Actual Behavior
During the execution of the SELECT COUNT(DISTINCT()) query using Grafana-Plugins, the returned count value deviates from the expected count. Specifically, the count value displayed in Grafana-Plugins is 0, whereas the accurate count obtained through IoTDB CLI is 2.

### Anything else?

The blurried part of the path are just for obscure sensitive data.

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện sự khác biệt với các bước IoTDB CLI và Grafana Explore được nêu, sử dụng các phiên bản đã liệt kê, rồi so sánh kết quả COUNT(DISTINCT()). Theo dõi cách điểm vào Grafana-Plugins xử lý phản hồi truy vấn; issue được xem là hoàn tất khi Grafana hiển thị cùng số đếm với CLI: 2 thay vì 0.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
grafana
Lĩnh vực
databases
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.