The 2nd query returns all records instead of the rest of them.

Bug #1267526 reported by Yuriy Yekovenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MagnetoDB
Fix Released
High
Illia Khudoshyn

Bug Description

1. Create a table with hash and range keys.
2. Put there the items (for example, 10 ones) with the same hash key value (e.g., 'H') and range key values starting with the same sub-string (e.g., 'R').
3. Send query with key conditions specifying that hash key should be equal to 'H' and range key should begin with 'R'
    and limit equal to 2 (i.e. not all ten records are expected to be returned).
4. Send the second query with exclusive start key equal to LastEvaluatedTableName parameter value from the response to the first query.

Expected result: response to the second query contains the remaining 8 records.
Actual result: the response returns all queries including those two that were returned by the first response.

Revision history for this message
Yuriy Yekovenko (yyekovenko) wrote :

Also, Response parameter 'LastEvaluatedTableName' should be renamed to 'LastEvaluatedKey'.

Changed in magnetodb:
importance: Undecided → High
milestone: none → 1.0.0
Changed in magnetodb:
assignee: nobody → Illia Khudoshyn (ikhudoshyn)
Changed in magnetodb:
status: New → Fix Committed
Changed in magnetodb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.