Skip to content
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

acryl-sqlglot fork - plans to contribute/switch to upstream? #10184

Closed
heavelock opened this issue Apr 2, 2024 · 4 comments · Fixed by #11693
Closed

acryl-sqlglot fork - plans to contribute/switch to upstream? #10184

heavelock opened this issue Apr 2, 2024 · 4 comments · Fixed by #11693
Assignees
Labels
bug Bug report

Comments

@heavelock
Copy link

heavelock commented Apr 2, 2024

Hey!

I just noticed that datahub is not using original release of sqlglot but rather an own fork.
The fork is currently 1 commit ahead and 18 commits behind the main branch of original library.

tobymao/sqlglot@main...hsheth2:sqlglot:main#diff-7857fedd1d1451b1b9a5b8efaa1cc292c02e7ee4f0d04d7e2f9d5bfb9565802cR38

Looking briefly at the code, it would be quite straightforward to contribute those changes to upstream, obviously apart of that one import. Is that somewhere on your roadmap? Are you planning to bring this code upstream?

I'm asking because we were strongly considering contributing to sqlglot to better support Clickhouse sql dialect. Those contributions were reasoned mostly due to DH's data lineage feature. But if there is one additional hoop to jump and no guarantee that we will be able to benefit from our sqlglot improvements in DH, the contributions I am trying to argue for, could be questioned.

@heavelock heavelock added the bug Bug report label Apr 2, 2024
@heavelock heavelock changed the title acryl-sqlglot fork - plans to contribute upstream? acryl-sqlglot fork - plans to contribute/switch to upstream? Apr 2, 2024
@hsheth2
Copy link
Collaborator

hsheth2 commented Apr 8, 2024

@heavelock I am going to keep the acryl-sqlglot fork up to date with the upstream sqlglot library. Because our changes are pretty small, it is pretty easy to keep up to date. I usually sync them every other week or so, and would be happy to sync them on demand if there's commits you're looking to make use of.

We already try to report issues/fixes to the upstream instead of fixing them locally in our branch. We've already created a handful of PRs and bug reports. I also intend to continue contributing back, and do want to move more of our changes upstream as they mature.

@hsheth2 hsheth2 self-assigned this Apr 8, 2024
@heavelock
Copy link
Author

Hey @hsheth2!
Thanks for the insights!

@usmanovbf
Copy link

Hi @hsheth2 ! Is there any news about switching upstream? As well as @heavelock I want to contribute and it would be easier to do while working with the upstream.

@hsheth2
Copy link
Collaborator

hsheth2 commented Aug 26, 2024

You can directly contribute to the upstream. When your PR is merged, let me know and I can pull those changes into my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants