Lowering in Reverse
buttondown.com·13w·
Discuss: Hacker News

November 3, 2025

NULL BITMAP.png

Recall last week, we talked about how to take a SQL query and turn it into a lower level plan, so this week I want to talk about how we can generate SQL queries. Having a high-quality query generator is an important component of testing SQL engines, because a lot of techniques for testing SQL engines can be reduced to generating queries that you then manipulate for testing purposes.

In a system that processes a language, remember we have multiple stages of processing:

image.png

Each stage (before optimizat…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help