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

Django present BUG by non partition-key "get_pk_field" #116

Open
mohsenjavidpanah opened this issue Apr 30, 2018 · 1 comment
Open

Django present BUG by non partition-key "get_pk_field" #116

mohsenjavidpanah opened this issue Apr 30, 2018 · 1 comment

Comments

@mohsenjavidpanah
Copy link

mohsenjavidpanah commented Apr 30, 2018

Hi guys

I have problem by models that defined a clustering-key as get_pk_field in Meta class, Suppose a model by repetitious partition-key that first clustering-key is unique UUID, when i defined model partition-key as get_pk_field on the admin panel when i click on the item MultipleObjectsReturned error raising, and when i set clustering-key as get_pk_field, in results of queries partition-key value is equal to clustering key but in keyspace table these values are distinct.

@mohsenjavidpanah mohsenjavidpanah changed the title The Django-Admin raise error by non partition-key "get_pk_field" The Django present BUG by non partition-key "get_pk_field" Apr 30, 2018
@mohsenjavidpanah mohsenjavidpanah changed the title The Django present BUG by non partition-key "get_pk_field" Django present BUG by non partition-key "get_pk_field" May 1, 2018
@areyal
Copy link

areyal commented Jun 4, 2018

I have been observed this behaviour. The objects retrieved with .get (anyprimarykey=x) result in wrong partition key assignment, which copies the searched primary key value, and the real partition key value is missing from the object. This is a big issue with get clauses. It doesn`t happen with filter.

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

2 participants