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
Index query with range key not working #25
Comments
Hi Alex, I couldn't reproduce this, would you mind giving me the code you used? Here is what I tried: https://gist.github.com/jlafon/e8c2f787bbbafcfb041a -Jharrod |
Jharrod - Like I said in my initial message, the query succeeds, if I use DynamoDB local. Using your example code, I can reproduce the exception, after removing the Best, |
OK, thanks for clarifying. I was able to reproduce this. The problem is the distinction between QueryFilter and KeyCondition in the query operation. I know how to fix it, but it's not trivial. I'll update this issue when it's done. -Jharrod |
Awesome. BTW: I hope to contribute actual code in the future instead of just issue reports. |
Would you mind trying this out? Thanks. |
That's a fair number of changes. I'm going to give this a spin later today and update this ticket. |
I am no longer able to reproduce the problem with the current |
Glad to hear it! I'll put out a bug fix release soon. |
There is an example of this at http://pynamodb.readthedocs.org/en/latest/indexes.html - the range key index query at the bottom of the page does not actually work - i.e. the following:
produces this exception:
Having explored this a little bit, it seems that the problem only occurs, if the range key attribute does not have a key on the model (hash or range). FWIW - the query appears to succeed with DynamoDB local.
The text was updated successfully, but these errors were encountered: