Closed abjagtap closed 2 months ago
Hey @abjagtap thanks for opening this issue, I was not able to find any documentation as well, I have contacted the DynamoDB team internally to check with them. Most probably this will be something that gets added to the documentation.
Is there any update to this bug? I am also facing this issue
According to docs:
The maximum number of operands for the IN comparator is 100
Found here: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html#limits-expression-parameters
You will need to perform the query/scan in multiple batches, in your case with 100 of Object.keys(profileIdObject).toString() in the first batch and 19 in the second batch. Then coalesce the results.
Absolutely ridiculous if you want only results NOT IN that array :(
Hi everyone - please understand that this change requires attention from the DynamoDB service team, and we have not seen any progress since notifying them.
Since there are no pending action items for the SDK team, and this repository is solely dedicated to SDK-related issues, I will proceed to close this case. However, please feel free to contact the service team directly through AWS Support for further assistance and updates regarding this change.
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug I am querying on DDB following is my request.
getting error
Invalid FilterExpression: The expression contains too many operators; operator count: 301
I am not sure what is an issue I tried in AWS documents but didn't found the relevant link for the above error, do I need to minimize filter expression or is there any workaround?
Thanks in advance.
Is the issue in the browser/Node.js? Browser/Node.js
If on Node.js, are you running this on AWS Lambda?
Details of the browser/Node.js version Paste output of
npx envinfo --browsers
ornode -v
SDK version number Example: v2.466.0
npm list aws-sdk
from your root directoryconsole.log(AWS.VERSION)
in your code whereAWS = require("aws-sdk");
To Reproduce (observed behavior) Steps to reproduce the behavior (please share code or minimal repo)
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.