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

Querying for n < x does not return all records that it should #6527

Closed
3 of 4 tasks
rickfero opened this issue Sep 26, 2024 · 1 comment
Closed
3 of 4 tasks

Querying for n < x does not return all records that it should #6527

rickfero opened this issue Sep 26, 2024 · 1 comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@rickfero
Copy link

rickfero commented Sep 26, 2024

Checkboxes for prior research

Describe the bug

  const command = new ScanCommand({
      TableName: 'Message',
      FilterExpression: '#version < :version',
      ExpressionAttributeNames: {
        '#version': '_lastInspectionVersion',
      },
      ExpressionAttributeValues: {
        ':version': { N: '1' },
      },
    });

  const response = await this.Client.send(command);

returns only 1 item

image

When looking in the same database (the only database I have) I can see there are way more than one

image

In general any query that queries on a number does not return all records.

Using "@aws-sdk/client-dynamodb": "^3.656.0",

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

"@aws-sdk/client-dynamodb": "^3.656.0",

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v20.14.0

Reproduction Steps

const command = new ScanCommand({
TableName: 'Message',
FilterExpression: '#version < :version',
ExpressionAttributeNames: {
'#version': '_lastInspectionVersion',
},
ExpressionAttributeValues: {
':version': { N: '1' },
},
});

const response = await this.Client.send(command);

Observed Behavior

One record returned

Expected Behavior

Over 1000 records returned

Possible Solution

?

Additional Information/Context

No response

@rickfero rickfero added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Sep 26, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant