Skip to content

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

@georgiivanov9

Description

@georgiivanov9

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions