AI SQL Generation: Overcoming Dialect-Specific Syntax
gavinray97.github.io
gavinray97.github.io
tl;dr = Use an abstract Query IR/AST as your generation target, rather than embedding dialect-specific syntax rules. Then render the IR to a target dialect programmatically.
Hopefully this is useful for other folks working in the "need to support multiple SQL dialects for my product" space.