Use a pager for query results in datafusion-cli
- Dominant language
- Rust
- Stars
- 9.3k
- Forks
- 2.4k
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 344
Description
### Is your feature request related to a problem or challenge?
In `datafusion-cli`, query output is often longer or wider than a terminal.
In unixes, the usual approach to handling this problem is to use a pager program like `less` or `more`
For example, `psql` for postgres uses that approach.
### Describe the solution you'd like
Where a pager is specified, output query results to the pager using whatever settings are applicable.
Allow the user to specify a pager of their choice, and to switch off the pager.
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
Contributor guide
Research direction
Start by locating the datafusion-cli query-output path and how terminal settings are currently handled. Define how a user specifies a pager, disables it, and applies its settings; done means long or wide query results are sent through the selected pager when configured and bypass it when disabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100