Skip to content

[SQL] Use the nicer formatting function for test outputs where possible#6514

Merged
mihaibudiu merged 1 commit into
feldera:mainfrom
mihaibudiu:qst
Jun 22, 2026
Merged

[SQL] Use the nicer formatting function for test outputs where possible#6514
mihaibudiu merged 1 commit into
feldera:mainfrom
mihaibudiu:qst

Conversation

@mihaibudiu

Copy link
Copy Markdown
Contributor

This is a purely cosmetic rewrite; I added recently a function which is more suitable for tests where strings never have trailing whitespaces. Previously I had to convert many tests, this reverts the conversions I had done and keeps the expected test outputs, as produced by Calcite/Postgres/etc.

@mihaibudiu
mihaibudiu enabled auto-merge June 21, 2026 05:15
@mihaibudiu
mihaibudiu requested a review from lalithsuresh June 21, 2026 05:15
Signed-off-by: Mihai Budiu <mbudiu@feldera.com>

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — mechanical revert of the earlier qs(...) conversions back to qst(...) now that qst handles trailing-whitespace correctly. Diff is overwhelmingly qs -> qst renames (167 removed / 171 added) plus the expected-output reformatting that goes with it (column padding, (N rows) footers re-added, no \s whitespace escapes). CI green; nothing else moves.

One observation on PostgresDateTests: the EPOCH/CENTURY*/MILLENNIUM* block goes from 13 individual @Test methods to a single testExtract1 containing all of them as one multi-statement qst. Functional coverage is preserved, but if one EXTRACT case regresses the surefire report will only point at testExtract1 rather than at e.g. testCentury3 — the failing SQL is still in the diff context, so it is mild, but it is a small loss of granularity. Not a blocker; flagging in case you want to keep finer-grained names elsewhere when consolidating.

Also noticed a couple of leftover // CURRENT_DATE not supported comments got dropped along with the methods they annotated — fine since the comment was only meaningful next to the removed test, just noting it so it is intentional.

@mihaibudiu
mihaibudiu requested review from anandbraman and gz June 21, 2026 17:03
@mihaibudiu
mihaibudiu added this pull request to the merge queue Jun 22, 2026
Merged via the queue into feldera:main with commit 20121b5 Jun 22, 2026
1 check passed
@mihaibudiu
mihaibudiu deleted the qst branch June 22, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants