spring-data-dynamodb
spring-data-dynamodb copied to clipboard
.Query annotation does not catch filter expression. It is always EQ.
Expected Behavior
@Query(
fields = "transition_effective_date",
filterExpression = "#field > :value",
expressionMappingNames = {@ExpressionAttribute(key = "#field", value = "name")},
expressionMappingValues = {@ExpressionAttribute(key = ":value", value = "projection")})
This should return all greater than the value, but instead return only the equal one.
Actual Behavior
Return only the equal one.
Steps to Reproduce the Problem
- Create a repository
- Add some records.
- Create a query with filter expression different than "=".
Specifications
- Spring Data DynamoDB Version: 5.2.5
- Spring Data Version:
- AWS SDK Version: 2.16.46
- Java Version: 17
- Platform Details:
All those information are logged by org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory
on INFO
level on startup.
Or use java -version
and mvn dependency:tree | grep -E 'spring|aws'
to provide those version numbers.