Skip to content

SQL logic error when using rusqlite with bundled-sqlcipher feature in Rust version of sqlite-vec #12

@AngelLiang

Description

@AngelLiang

Hello,

Firstly, I would like to express my admiration for your work on the sqlite-vec library. It is an excellent tool that simplifies many complex tasks.

However, I've recently encountered an issue with the Rust version of sqlite-vec. When using the rusqlite database tool with the bundled-sqlcipher feature, I'm experiencing an SQL logic error. This error occurs when I try to execute the following SQL query:

SELECT rowid, distance
FROM vec_items
WHERE embedding MATCH ?1
ORDER BY distance
LIMIT 10;

Despite various attempts, I am unable to resolve this issue. Here are the dependencies I am using in the project:

[dependencies]
sqlite-vec= {version="0.0.1-alpha.10"}
rusqlite = {version="0.31.0", features= ["bundled-sqlcipher"] }

This issue has been a bit of a stumbling block and I'm hopeful that with your expertise and experience, you might be able to provide a solution.

Thank you once again for your excellent work on sqlite-vec. I look forward to your response.

Best regards,

AngelLiang

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions