Skip to content

In-memory PartiQL: NextToken is a list offset, so pages skip or repeat rows when items change #91

Closed

Description

@fctl-sh

Priority: medium. SELECT pages continue at an offset into the result list (offset:N, backend/memory/partiql.rs, select), not after the last key they evaluated. With Limit=2, page 1 returns sk 0 and 1; delete those two rows, and page 2 returns sk 4 and 5, where DynamoDB returns 2 and 3. Inserts before the position repeat rows. A "select a page, delete it, continue" cleanup loop misses items on the in-memory backend. last_evaluated_key is never set on SELECT pages either.

Fix: encode the key of the last evaluated item in NextToken and continue after it.

Found in a review of the library for bugs (fctl session); the fixes that fit in its ten pull requests are #61 to #65, #67 to #70 and #72.

Activity

  1. added
    bug
    rust
    on Oct 30, 2026
  2. added a commit that references this issue on Oct 31, 2026
    03c9196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrust

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions