PratikBhusal / dynamodb-query-limit-bug

For some reason DynamoDB local doesn't play nicely with how I setup the limit argument. What do we need to do to fix it?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toy project to showcase the wierd quirk when trying to query a DynamoDB local table.

Getting Started

First Time

  1. Clone the repo:
git clone git@github.com:PratikBhusal/dynamodb-query-limit-bug.git
  1. Verify test fails by running:
gradle clean build

with the following log output:

> Task :library:test FAILED

DefaultProductDaoTest > query returns less than the max items when there are 25 in the partition() FAILED
    java.lang.AssertionError: query returned 12 items from the table
    50 should be <= 12
        at org.example.persistence.ddb.dao.impl.DefaultProductDaoTest.query returns less than the max items when there are 25 in the partition(DefaultProductDaoTest.kt:110)

About

For some reason DynamoDB local doesn't play nicely with how I setup the limit argument. What do we need to do to fix it?


Languages

Language:Kotlin 100.0%