How to get all the items matching only the partition key (table has sort key) using Amazon DynamoDB module. I'm using the GetItemRequest to query without the sort key.
GetItemRequest getItemRequest = getRequest(externalId);
IDMapping.from(dynamoDB.getItem(getItemRequest).item());
I get the following error when i query only with partition key with GetItemRequest.
Caused by: software.amazon.awssdk.services.dynamodb.model.DynamoDbException: The provided key element does not match the schema (Service: DynamoDb, Status Code: 400, Request ID: 6C9BTJCJOTS7I5FI1EBJLIQK3RVV4KQNSO5AEMVJF66Q9ASUAAJG, Extended Request ID: null)
I'm using the following dependency in my quarkus application.
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>dynamodb</artifactId>
</dependency>
This query is possible using aws cli, aws console and also with the older java aws-sdk.
are there any ways to overcome this?
Thanks in Advance