Improve SessionPoolExample by replacing unbounded fixed thread pool with bounded ThreadPoolExecutor
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先定位 SessionPoolExample,并将请求的 thread-pool 更改与 issue 正文进行协调;issue 正文讨论的却是 iotdb-client/cli/src/main/java/org/apache/iotdb/cli 中的 CLI 输出格式。确认预期的范围,然后确定相关测试或可运行示例;完成的标准是,选定的更改已在不进行无界线程创建的情况下实现,并且其行为已得到验证。
由索引模型根据 Issue 内容生成。
描述
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!
- 主要语言
- Java
- 星标
- 6.4k
- 派生
- 1.2k
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 137
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/iotdb 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
apache/iotdb#18655 · 1 个 reaction ·
维护者通常 1 天内回复
-
IoTDB Edge: stop-edge.sh does not stop its own process when IOTDB_HOME is set, and reports success未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
github/copilot-sdk#2793 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
enhancement good first issue
难度 1/5 1-3 小时 新手友好度 88/100