PakhomovAlexander opened a new pull request, #7420: URL: https://github.com/apache/ignite-3/pull/7420
## Summary - Add column truncation support for SQL output in CLI REPL mode to prevent tables from exceeding terminal width - Detect terminal width using JLine and truncate/distribute column widths to fit - Use ellipsis (`...`) as truncation indicator ## Configuration - `ignite.cli.output.truncate` (default: `true`) - enable/disable truncation - `ignite.cli.output.max-column-width` (default: `50`) - maximum column width ## Command-line flags - `--max-col-width N` - override default max column width - `--no-truncate` - disable truncation (show full content) ## Implementation Details - REPL mode only (where terminal width is available) - `--plain` and `--no-truncate` are independent flags - Proportionally distributes column widths when terminal width is constrained - Preserves minimum column width (3 chars for ellipsis) ## Test plan - [x] Unit tests for `TableTruncator` (14 tests) - [ ] Manual testing in REPL mode with wide tables - [ ] Verify truncation with various terminal widths ## Ticket https://issues.apache.org/jira/browse/IGNITE-27515 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
