Lowering in Reverse
buttondown.com·17h
Flag this post

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