Open sshevlyagin opened 4 years ago
I have been looking into this for a while. So far what I have found is Spring Data made some changes upstream regarding their conversion service. This means the query get's iterated before it gets back to you. I have not been successful in finding a way to get it to not think that these results are candidates for conversion.
I'll leave this issue open for tracking purposes.
You can see there that they loop through the collection before the result ever gets back to us to verify it does not have to do any type conversion.
Thanks! Is that a bug on the part of SpringData or is ITERATION_ONLY simply not compatible anymore?
for the moment I am going to say ITERATION_ONLY is simply not compatible anymore. Spring Data has changed a lot and if i circumvent this stuff its going to break a lot of expected functionality
Expected Behavior
It's possible to run queries that filter by a value with
DynamoDBMapperConfig.PaginationLoadingStrategy.ITERATION_ONLY
Actual Behavior
You get the following error:
Steps to Reproduce the Problem
Set up the following DynamoDBMapperConfig
findBy
methodNote: Setting a breakpoint on https://github.com/aws/aws-sdk-java/blob/1.11.794/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/PaginatedList.java#L230 will show you that the PaginatedListIterator was called before the forLoop got there with the following stack.
Specifications