-
Notifications
You must be signed in to change notification settings - Fork 93
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
Integrating DuckDB #162
Comments
For now all of the engines are hard-coded, so do it properly we'll need to change Logica's code. It shouldn't be too hard, as code is reasonably modularized. We'd need to add dialect class for duckdb here: Add a library here: And to make colab call it properly handle it here: If you want to try doing it in your colab you can probably just use Python freedom to assign appropriate classes/dictionary members. You can also run PostgreSQL-dialect queries on it. E.g. in my colab the following cell runs after you set connection to DuckDB with SQLAlchemy:
However more complex quries fail, as it appears DuckDB uses it's own syntax for arrays and structs. Let me know if you have further questions, or if you're interested contributing DuckDB support to Logica! :-) |
Thanks for that info :). I had some follow up questions.
|
Yes, we can use any Python API.
I believe it can all be solved in |
that's great :). I'll come back to this when I get some bandwidth but we can close this for now. |
Sounds good! |
Hi,
I'm interested in using DuckDB(https://duckdb.org/) as a data source for Logica and I was wondering what would be the steps to integrate it. It's like SQLite for analytics and is a subset of the PostgreSQL syntax.
We could use
sqlalchemy
but 1) I don't know how to proceed after and 2) I think the ORM design ofsqlalchemy
may make it slow if we are returning a lot of data(just an hypothesis based on duckdb/duckdb#305)So the question is two fold.
sqlalchemy
interface, the setup code would be something like this.but how do I use it after that?
sqlachemy
interface, how would I go about doing that? The general usage is:The text was updated successfully, but these errors were encountered: