-
Notifications
You must be signed in to change notification settings - Fork 296
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
Unable to create multiple lsh indices each one in its own keyspace #171
Comments
Thanks for the issue. It looks like it is a bug in Cassandra storage. Only the first keyspace you specified will be created due to the client session being reused by all subsequent calls to the storage. The offending code is here: https://github.com/ekzhu/datasketch/blob/master/datasketch/storage.py#L284 If we have multiple shared sessions grouped by keyspace should solve this problem. I am not very familiar with Cassandra, would you consider submit a pull request to fix this bug? |
@ekzhu sure, will take a look and we will submit PR for that. |
@ekzhu Hi, where you are going to merge and release the version? |
… (#172) Co-authored-by: Ron Assa <ron@analytika.io>
Merged an released. |
First of all, thank you for great work @ekzhu!
Here is a reproducible test that shows that my expectation is to create 1 keyspace per each LSH index unfortunately all LSH tables are being created in the scope of the same Cassandra keyspace.
The produced result inside of Cassandra DB, please see below:
Looking forward to hear from you what we are doing wrong since we don't have any practical experience with datasketch yet.
The text was updated successfully, but these errors were encountered: