apache / apache/iotdb

Improve SessionPoolExample by replacing unbounded fixed thread pool with bounded ThreadPoolExecutor

Đang mở
#17,268 6 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.

### Motivation

I am sometimes frustrated when using the IoTDB CLI because the output of certain commands is difficult to read when the result set is large. The CLI currently prints results in a plain format which may be harder to interpret for users analyzing time-series data interactively.

Improving the CLI output formatting (for example better alignment or optional table-style display) would improve usability, especially for users exploring IoTDB from the command line.

### Solution

One possible solution is to improve the CLI output formatting by introducing a table-style display for query results.

For example, results could be formatted with aligned columns and clearer separators so that timestamps and values are easier to read.

Additionally, an optional CLI flag (for example `--pretty`) could allow users to enable or disable enhanced formatting depending on their preference.

The implementation could be handled in the CLI output handling logic located in:

`iotdb-client/cli/src/main/java/org/apache/iotdb/cli`

### Alternatives

An alternative approach could be to keep the current output format but allow users to export query results directly to formats such as CSV or JSON for easier processing in external tools.

However, improving the CLI display would provide a better interactive experience directly within the terminal.

### Are you willing to submit a PR?

- [x] 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 việc xác định SessionPoolExample và đối chiếu thay đổi thread-pool được yêu cầu với nội dung issue, trong đó thay vào đó thảo luận về việc định dạng đầu ra CLI trong iotdb-client/cli/src/main/java/org/apache/iotdb/cli. Xác nhận phạm vi nào là phạm vi được dự định, sau đó xác định các bài kiểm thử liên quan hoặc ví dụ có thể chạy; được xem là hoàn tất khi thay đổi đã chọn được triển khai mà không tạo thread không giới hạn và hành vi của nó đã được xác minh.

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

Đánh giá

Công nghệ
java
Lĩnh vực
cli
Loại issue
Tái cấu trúc
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/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.