Skip to content

feat: support sqllogictest output coloring#20368

Open
theirix wants to merge 2 commits intoapache:mainfrom
theirix:sqllogictest-color
Open

feat: support sqllogictest output coloring#20368
theirix wants to merge 2 commits intoapache:mainfrom
theirix:sqllogictest-color

Conversation

@theirix
Copy link
Contributor

@theirix theirix commented Feb 15, 2026

Which issue does this PR close?

Rationale for this change

It's more ergonomic to have colored diffs in sqllogictest's output.

The upstream library already supports it, and we can enable it based on the user's choice. This PR checks NO_COLOR, terminal settings, CARGO_TERM_COLOR and --color CLI argument. By default, the diff is colored.

Screenshot 2026-02-15 at 11 44 05

What changes are included in this PR?

  • sqllogictest driver output colouring with argument/flags analysis

Are these changes tested?

  • Tested different flag combinations

Are there any user-facing changes?

Respects NO_COLOR, terminal settings, CARGO_TERM_COLOR and `--color` CLI argument

Signed-off-by: theirix <theirix@gmail.com>
Signed-off-by: theirix <theirix@gmail.com>
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Feb 15, 2026
@theirix theirix marked this pull request as ready for review February 15, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support sqllogictest output coloring

3 participants