-
Notifications
You must be signed in to change notification settings - Fork 75
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
Does not find data frame with duckdb #1033
Comments
I just encountered the same issue using the Google Collab here: https://colab.research.google.com/drive/1eOA2FYHqEfZWLYssbUxdIpSL3PFxWVjk?usp=sharing#scrollTo=uNxSRUVu4YvY |
The DuckDB configuration setting to allow DataFrame access is set to true, so that isn't the issue. I also tried with a native DuckDB connection within JupySQL instead of SQLAlchemy and received a similar error. However, running DuckDB directly on the dataframe works without an issue. conn = duckdb.connect()
conn.execute('''SELECT sum(i) as total_i FROM input_df''').df() |
This may be related to duckdb/duckdb#13896. This fix is coming in DuckDB 1.1.1, tentatively planned for about a week from now. |
My current hypothesis is that it is related to the DuckDB issue above (duckdb/duckdb#13896). Maybe JupySQL is trying to access a dataframe that is no longer in the same frame? I think there are 2 paths: either adjust how the code is executed so that the dataframes are in the same frame, or once 1.1.1 arrives, automatically set the upcoming setting |
I tried this with duckdb 1.0.0 and it works:
my recommendation for now is to downgrade:
once the duckdb fix is in, we'll update jupysql |
What happens?
For some reason, jupysql can't find my dataframe, even though I used exactly the example in the docs...
To Reproduce
As of writing, I have the latest jupyterlab, jupysql, and duckedb. I'm following the docs and getting "Catalog Error: Table with name df does not exist!", both with native and sqlalchemy connections.
OS:
macOS
JupySQL Version:
0.10.13
Full Name:
Charles-Axel Dein
Affiliation:
Stealth Startup
The text was updated successfully, but these errors were encountered: