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

Parse error when using new row_limiting_clause for similarity searches #42

Open
PhilippSalvisberg opened this issue Jul 3, 2024 · 0 comments
Assignees
Labels
23.4 bug Something isn't working

Comments

@PhilippSalvisberg
Copy link
Collaborator

The following query causes a parser error:

select name, embedding
  from galaxies
 order by vector_distance(embedding, vector('[0,1,1,0,0]', 5, int8), dot)
 fetch approx first 3 rows only
  with target accuracy 80 percent;

The reason is the new row_limiting_clause introduced in 23.4 to allow similarity searches. Changes in this clause are not covered by the underlying parser.

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

No branches or pull requests

2 participants