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

Bug: Load from DataFrame doesn't work in Python async API #5139

Open
ray6080 opened this issue Mar 27, 2025 · 0 comments
Open

Bug: Load from DataFrame doesn't work in Python async API #5139

ray6080 opened this issue Mar 27, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ray6080
Copy link
Contributor

ray6080 commented Mar 27, 2025

Kuzu version

master

What operating system are you using?

No response

What happened?

For example the following code will give an error Binder exception: Variable df is not in scope.

tab = pa.Table.from_arrays(
        [
            [1, 2, 3],
            ["a", "b", "c"],
            [True, False, None],
        ],
        names=["col1", "col2", "col3"],
    )
result = await conn.execute("LOAD FROM tab RETURN *")

My guess is that this is because async connections execute queries using a separate thread from the calling thread, and thus the dataframe isn't scope for the executing thread.

From comment by @royi-luo .

Are there known steps to reproduce?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants