Skip to content
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

DynamoDbClient.scanPaginated ignores exclusiveStartKey #1330

Closed
thake opened this issue Jun 13, 2024 · 4 comments
Closed

DynamoDbClient.scanPaginated ignores exclusiveStartKey #1330

thake opened this issue Jun 13, 2024 · 4 comments
Labels
bug This issue is a bug.

Comments

@thake
Copy link

thake commented Jun 13, 2024

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

@thake thake added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jun 13, 2024
@0marperez 0marperez removed the needs-triage This issue or PR still needs to be triaged. label Jun 14, 2024
@0marperez
Copy link
Contributor

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.

@0marperez 0marperez reopened this Jun 25, 2024
Copy link

⚠️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
Copy link
Contributor

Fixed by smithy-lang/smithy-kotlin#1101

Copy link

⚠️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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants