awslabs / aws-sdk-kotlin

Multiplatform AWS SDK for Kotlin
Apache License 2.0
414 stars 49 forks source link

DynamoDbClient.scanPaginated ignores exclusiveStartKey #1330

Closed thake closed 5 months ago

thake commented 5 months ago

Describe the bug

The method DynamoDbClient.scanPaginated ignores the initial exclusiveStartKey.

Expected behavior

The inital passed exclusiveStartKey is honored.

Current behavior

The inital passed exclusiveStartKey is ignored.

Steps to Reproduce

val table = "table-to-scan"
val lastKey = mapOf("primaryKey" to AttributeValue.S("lastKeyPk"))
val result = client.scanPaginated {
    tableName = table
    exclusiveStartKey = lastKey
}
val simpleScanResult = client.scan {
    tableName = table
    exclusiveStartKey = lastKey
}
//results should have the same item at pos 0, but they don't as exclusiveStartKey is ignored.

Possible Solution

No response

Context

No response

AWS SDK for Kotlin version

2

Platform (JVM/JS/Native)

JVM

Operating system and version

Mac OS 14

0marperez commented 5 months ago

Hello @thake, the fix for this issue was released. I'll mark this issue as resolved but if you're still having issues feel free to @ me.

github-actions[bot] commented 5 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

0marperez commented 5 months ago

Fixed by https://github.com/smithy-lang/smithy-kotlin/pull/1101

github-actions[bot] commented 5 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.