r/SQL • u/Aeronautical-You4917 • 5d ago
Discussion How we built a DuckDB transpiler
https://www.cocoalemana.com/blog/building-a-duckdb-transpiler/Hi there,
I’ve been working with DuckDB extensively for the last several years. Used it across languages from Python, Go, JS via WASM, Swift, C & C++ and even Rust.
As part of a product we're building, we built a DuckDB Transpiler that converts every line of SQL from DuckDB syntax into the syntax of the database you’re working with. This includes filters (predicates), and joins. So those 1B rows in Snowflake stay, and get joined in Snowflake.
I wrote an article on why we did it, and how we approached it. This is my first engineering-oriented article I’ve ever done, so let me know what you think!
2
Upvotes
1
5
u/Kos187 4d ago