You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found it on the internets, sqlglot looks like a fantastic library - parser + query transformer + dialect converter.
Supports building queries incrementally too - link, though not sure how it will work for larger queries. If it does, definitely makes FunSQL in python redundant since writing small sql expressions is more convenient.
We could definitely leverage it meanwhile.
Add an SQLNode called LiteralQuery that takes a SQL string, parse it with sqlglot. If we can infer the output columns, could compose/extend it with regular FunSQL constructs.
Use it to transpile FunSQL output SQL string to different dialects.
The text was updated successfully, but these errors were encountered:
Found it on the internets, sqlglot looks like a fantastic library - parser + query transformer + dialect converter.
Supports building queries incrementally too - link, though not sure how it will work for larger queries. If it does, definitely makes FunSQL in python redundant since writing small sql expressions is more convenient.
We could definitely leverage it meanwhile.
LiteralQuery
that takes a SQL string, parse it with sqlglot. If we can infer the output columns, could compose/extend it with regular FunSQL constructs.The text was updated successfully, but these errors were encountered: