- CASE WHEN
- Posts
- π€ MDS Chat w/ Matt #3 - SQLGlot
π€ MDS Chat w/ Matt #3 - SQLGlot
A library with the potential to revolutionize how SQL-based tools are built
π€ It's time for MDS Chat with Matt!
This week, I'm talking about SQLGlotβ an open-source library from Toby Mao at Tobiko Data. I think SQLGlot has the potential to revolutionize how SQL-based libraries are built.
Here's why I'm excited:
1οΈβ£ SQLGlot can break down queries and extract their useful bits. That means it can parse columns, aliases, and tables from your query. At a high-level, you could π΅π©π¦π°π³π¦π΅πͺπ€π’πππΊ use this to back-into a column-level lineage of your warehouse by analyzing SQL files... which is exactly what SQLMesh and others are doing.
2οΈβ£ SQLGlot can π΅π³π’π―π΄ππ’π΅π¦ (or transpile) between dialects. Want to migrate Redshift to BigQuery? Give SQLGlot a shot to see if it can do most of the heavy lifting.
3οΈβ£ There are π΄π° many features in this library, I think it will serve as the basis for innumerable SQL-based libraries going forward.
Read more about SQLGlot, SQLMesh, and the Tobiko Data team here: https://buff.ly/3sW3GtL π
Until next time!