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: ERROR: operator is not unique: unknown <-> unknown #108

Closed
BeautyyuYanli opened this issue Oct 29, 2023 · 2 comments · Fixed by #111
Closed

bug: ERROR: operator is not unique: unknown <-> unknown #108

BeautyyuYanli opened this issue Oct 29, 2023 · 2 comments · Fixed by #111

Comments

@BeautyyuYanli
Copy link
Contributor

❯ psql -h localhost -U postgres
Password for user postgres: 
psql (15.4)
Type "help" for help.

postgres=# SELECT '[1, 2, 3]' <-> '[3, 2, 1]';
ERROR:  operator is not unique: unknown <-> unknown
LINE 1: SELECT '[1, 2, 3]' <-> '[3, 2, 1]';
                           ^
HINT:  Could not choose a best candidate operator. You might need to add explicit type casts.
@silver-ymz
Copy link
Member

The default type of '' is unknown in SQL. Seems you need to add explicit type casts, e.x. SELECT '[1,2,3]'::vector <-> '[1,2,3]'::vector;

@BeautyyuYanli
Copy link
Contributor Author

<#> and <=> is ok

Need to update readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants