-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
This is a Bug Report
Description
- What went wrong?
Update fails in case attribute name contains keyword ADD (e.g. address)
The problem is assumably caused by updateExpression split located here: https://github.com/getndazn/dazn-lambda-powertools/blob/master/packages/lambda-powertools-dynamodb-client/index.js#L26 - What did you expect should have happened?
Update to work normally regardless of the attribute name - What was the config (if any) you used?
N/A - What stacktrace or error message did you see?
Invalid UpdateExpression: Syntax error; token: \"#\", near: \", #,\"
Similar or dependent issues:
N/A
Additional Data
- Which powertool package are you using?
lambda-powertools-dynamodb-client - Which version are you using?
1.26.0 - Middy engine version you're using
1.4.0 - Operating System
AWS Lambda / NodeJS - Stack Trace
ValidationException: Invalid UpdateExpression: Syntax error; token: \"#\", near: \", #,\"
at Request.extractError (/node_modules/aws-sdk/lib/protocol/json.js:51:1)
at Request.callListeners (/node_modules/aws-sdk/lib/sequential_executor.js:106:1)
at Request.emit (/node_modules/aws-sdk/lib/sequential_executor.js:78:1)
at Request.emit (/node_modules/aws-sdk/lib/request.js:688:1)
at Request.transition (/node_modules/aws-sdk/lib/request.js:22:1)
at AcceptorStateMachine.runTo (/node_modules/aws-sdk/lib/state_machine.js:14:1)
at /node_modules/aws-sdk/lib/state_machine.js:26:1
at Request.<anonymous> (/node_modules/aws-sdk/lib/request.js:38:1)
at Request.<anonymous> (/node_modules/aws-sdk/lib/request.js:690:1)
at Request.callListeners (/node_modules/aws-sdk/lib/sequential_executor.js:116:1)
- Provider Error messages:
N/A
tume, joaodfmota and varqasim
Metadata
Metadata
Assignees
Labels
No labels