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

Variables don't get set with jupysql using the native connection #4731

Open
danielsparing opened this issue Feb 6, 2025 · 0 comments
Open

Comments

@danielsparing
Copy link

Experiencing it at least both in Colab and in VSCode on Windows (loosely following the Jupyter doc):

!pip install jupysql
import duckdb

%load_ext sql
conn = duckdb.connect()
%sql conn --alias duckdb
%%sql
SET VARIABLE my_var = 30;
SELECT getvariable('my_var') as my_var;

Returns a 1x1 table:

my_var
None

It works fine using SQLAlchemy.

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

No branches or pull requests

1 participant