-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Feat: add ability to create dialect plugins #6627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: add ability to create dialect plugins #6627
Conversation
e75a6a8 to
ed45e5f
Compare
|
Drop a ping / bump this PR when ready. |
ed45e5f to
85acb55
Compare
georgesittas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, thanks for your contribution. A few questions on my end, @tobymao you may wanna take a look at this one too.
85acb55 to
a4e1d16
Compare
|
So there's a proof-of-concept plugin: There's entrypoints definition: You can install it from github And check (before and after installation) this script: import sqlglot
query = """
with cte as (select * from b) select * from a, cte where nvl(b)>0 and EXTRACT(YEAR FROM dt) > 2024
"""
print(sqlglot.transpile(query, read="postgres", write="ydb")) |
Resolves: #6626