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: Python and C++ Interoperability #4539

Open
sjpritchard opened this issue Nov 16, 2024 · 1 comment
Open

Bug: Python and C++ Interoperability #4539

sjpritchard opened this issue Nov 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sjpritchard
Copy link

sjpritchard commented Nov 16, 2024

Kùzu version

v0.7.0

What operating system are you using?

Windows 11

What happened?

I've created a database in Python, and can read back from it successfully. However, if I try to load the same database in C++ (20), it crashes with a Read Access Violation during a query(). Should the database files be cross-compatible between Python and C++?

auto query_result = connection_->query("MATCH (c:Chunk) WHERE c.id = 219 RETURN c.text");
while (query_result->hasNext()) {
    auto row  = query_result->getNext();
    auto text = row->getValue(0)->getValue<std::string>();
}

An empty database in C++ loads fine.

Are there known steps to reproduce?

No response

@sjpritchard sjpritchard added the bug Something isn't working label Nov 16, 2024
@acquamarin
Copy link
Collaborator

Hi @sjpritchard
I am not able to reproduce your bug on windows11, may i know your python version?
And are you using msvc or mingw to compile your c++ code?

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