Skip to content

Query generation fixes - #585

Open
thomasp85 wants to merge 5 commits into
mainfrom
issue-576-reader-fixes
Open

thomasp85 wants to merge 5 commits into
mainfrom
issue-576-reader-fixes

Conversation

@thomasp85

@thomasp85 thomasp85 commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Fix #576

This PR fixes two dialect issues uncovered in #569 but shelved until that was done. The issues are

T-SQL: Only allow ORDER BY in the outermost query. DRAW line encoded it in a nested query. This was fixed not by changing the dialect but by changing the stat to hoist the order by up

MySQL: Only allows a single reference to a temp table per query. Boxplot et al violated that in its quantile computations. This turned out to be unfixable in the query generation and instead MySQL now opts out of temp table generation (together with MS SQL and Oracle). As the list have now grown, I've added a cleanup step to these so that, unless the process errors out mid-execution, we don't leave tables hanging.

@thomasp85
thomasp85 requested a review from teunbrand October 9, 2026 13:29

This branch has not been deployed

No deployments
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.

Fix recorded deficiencies in the readers

1 participant