apache / apache/datafusion

Use a pager for query results in datafusion-cli

Open
#15,596 1 comment 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.