Improve SessionPoolExample by replacing unbounded fixed thread pool with bounded ThreadPoolExecutor

Open
#17,268 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
cli

Research direction

Start by locating SessionPoolExample and reconciling the requested thread-pool change with the issue body, which instead discusses CLI output formatting in iotdb-client/cli/src/main/java/org/apache/iotdb/cli. Confirm which scope is intended, then identify the relevant tests or runnable example; done means the selected change is implemented without unbounded thread creation and its behavior is verified.

Written by the indexing model from the issue text.

Description

Search before asking
  • I searched in the 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?
  • 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/iotdb

All issues in apache/iotdb

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.