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

[regression] - Adding indexing options in the createCollection remove idempotence #835

Closed
clun opened this issue Jan 25, 2024 · 2 comments · Fixed by #836
Closed

[regression] - Adding indexing options in the createCollection remove idempotence #835

clun opened this issue Jan 25, 2024 · 2 comments · Fixed by #836
Assignees

Comments

@clun
Copy link

clun commented Jan 25, 2024

Previously this request could be executed multiple times without errors:

{"createCollection":{"name":"collection_vector","options":{"vector":{"dimension":14,"metric":"cosine"}}}}

Will get you all the time.

{"status":{"ok":1}}

With the indexing options the behaviour is now different:

{"createCollection":{"name":"collection_vector","options":{"vector":{"dimension":14,"metric":"cosine"},"indexing":{"deny":["blob_body"]}}}}

=> {"status":{"ok":1}}

{"createCollection":{"name":"collection_vector","options":{"vector":{"dimension":14,"metric":"cosine"},"indexing":{"deny":["blob_body"]}}}}

=> {"errors":[{"message":"The provided collection name 'collection_vector' already exists with a different vector setting.","errorCode":"INVALID_COLLECTION_NAME"}]}
@tatu-at-datastax tatu-at-datastax self-assigned this Jan 25, 2024
@tatu-at-datastax
Copy link
Contributor

Thank you for reporting this @clun . I will have a look.

@tatu-at-datastax
Copy link
Contributor

Yes, I can reproduce this with IT (#836); working on a fix.

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

Successfully merging a pull request may close this issue.

2 participants