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

.Query annotation does not catch filter expression. It is always EQ. #816

Open
georgiivanov9 opened this issue May 4, 2023 · 0 comments

Comments

@georgiivanov9
Copy link

georgiivanov9 commented May 4, 2023

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

  1. Create a repository
  2. Add some records.
  3. Create a query with filter expression different than "=".

image

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.

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

No branches or pull requests

1 participant