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

Support space character in vector column name #1926

Open
jiahuei opened this issue Jan 21, 2025 · 0 comments
Open

Support space character in vector column name #1926

jiahuei opened this issue Jan 21, 2025 · 0 comments

Comments

@jiahuei
Copy link

jiahuei commented Jan 21, 2025

Right now various vector functions fail when encountering a vector column with spaces in its name.
For example:

CREATE INDEX 'title embed idx' ON movies (libsql_vector_idx('title embed'));
SELECT title,
    vector_extract('title embed'),
    vector_distance_cos('title embed', vector16('[0.064, 0.777, 0.661]'))
FROM movies
ORDER BY
    vector_distance_cos('title embed', vector16('[0.064, 0.777, 0.661]'))
ASC;

In these examples, libsql_vector_idx, vector_extract, and vector_distance_cos all fail.
It would be great if space is accepted.

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