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

segfault when using EXPLAIN in Python API #1681

Closed
lehners opened this issue Jun 15, 2023 · 0 comments
Closed

segfault when using EXPLAIN in Python API #1681

lehners opened this issue Jun 15, 2023 · 0 comments
Assignees

Comments

@lehners
Copy link
Contributor

lehners commented Jun 15, 2023

A segmentation fault is thrown when i execute EXPLAIN commands with the Python API 0.0.4.

Minimal example to reproduce the behavior:

import kuzu
import os
import shutil

db_file = './testdb'
if os.path.exists(db_file):
    shutil.rmtree(db_file)

# create database
db = kuzu.Database(db_file)
# create connection
conn = kuzu.Connection(db)

# create schema
conn.execute("CREATE NODE TABLE User(name STRING, age INT64, PRIMARY KEY (name))")
# load data


# issue a query
results = conn.execute('EXPLAIN MATCH (u:User) RETURN u.name;')
# iterate result
while results.has_next():
    print(results.get_next())
@lehners lehners changed the title Segvault when using EXPLAIN in Python API segfault when using EXPLAIN in Python API Jun 15, 2023
@andyfengHKU andyfengHKU self-assigned this Jun 15, 2023
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

3 participants