You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, as of Dyanmoid 3.10.0, with the merge of #655, Dynamoid no longer works with fields that start with "special" characters such as underscores in where conditions. It may also be failing with fields that contain special characters such as full stops and dashes anywhere in the field name. These names should be accounted for with the use of expression attribute names.
These queries have long worked with Dynamoid, and still work with 3.9.0, but have stopped working as of 3.10.0.
Thank you for reporting the issue. Will work on it.
The simplest options seem to be either:
using placeholders for all the attribute names, not only for the reserved words
or additionally use placeholders for names that contain . and - or start with _/#
thelibrarian
changed the title
Error querying fields starting with "special characters"
Error querying fields starting with special characters
Oct 1, 2024
I agree, and both approaches have their plusses and minuses. Using expression attribute names for all attributes is probably the safest, but may make queries run a little slower. Checking for reserved names and special characters and using expression attribute names for only those cases may make the query slightly more efficient but adds the overhead of maintaining that list and the possibility of missing some cases.
Hi, as of Dyanmoid 3.10.0, with the merge of #655, Dynamoid no longer works with fields that start with "special" characters such as underscores in
where
conditions. It may also be failing with fields that contain special characters such as full stops and dashes anywhere in the field name. These names should be accounted for with the use of expression attribute names.These queries have long worked with Dynamoid, and still work with 3.9.0, but have stopped working as of 3.10.0.
Error message from
aws-sdk-dynamodb
:The text was updated successfully, but these errors were encountered: