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
Previously with step functions steps like DynamoPutItem, we were able to do DynamoAttributeValue.fromNumber(JsonPath.numberAt(key)), which would use JSONPath to access the number and save the number in dynamo. With JSONata it seems like there is no replacement for this. I tried DynamoAttributeValue.numberFromString("$states.input.blah") but that fails with The parameter cannot be converted to a numeric value: $states.input.blah, as I'm pretty sure that's for turning a string like "1" into the numeric in DDB.
This is most likely a missed part of the addition of JSONata, and not a bug, but it still prevents migration to JSONata for any Dynamo related steps. There are other functions in the DynamoAttributeValue class like listFromJsonata, mapFromJsonata, and booleanFromJsonata so I'm unsure whether this should be a new method on the DynamoAttributeValue class or if it should be its own replacement like JSONata.numberAt.
Regression Issue
Select this option if this issue appears to be a regression.
Last Known Working CDK Version
No response
Expected Behavior
I would either expect to have a new class software.amazon.awscdk.services.stepfunctions.JSONata with functions equivalent to those of software.amazon.awscdk.services.stepfunctions.JSONPath, or for there to be methods on DynamoAttributeValue for JSONata.
Current Behavior
No ability to translate JSONata paths into Dynamo attributes.
Reproduction Steps
There is no reproduction for this because there is no function to achieve this. The bug is a missing method or class.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.178.0
Framework Version
2.178.0
Node.js Version
v22.8.0
OS
macOS
Language
Java
Language Version
Kotlin 2.1.10 JVM 21
Other information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Previously with step functions steps like DynamoPutItem, we were able to do
DynamoAttributeValue.fromNumber(JsonPath.numberAt(key))
, which would use JSONPath to access the number and save the number in dynamo. With JSONata it seems like there is no replacement for this. I triedDynamoAttributeValue.numberFromString("$states.input.blah")
but that fails withThe parameter cannot be converted to a numeric value: $states.input.blah
, as I'm pretty sure that's for turning a string like"1"
into the numeric in DDB.This is most likely a missed part of the addition of JSONata, and not a bug, but it still prevents migration to JSONata for any Dynamo related steps. There are other functions in the DynamoAttributeValue class like
listFromJsonata
,mapFromJsonata
, andbooleanFromJsonata
so I'm unsure whether this should be a new method on theDynamoAttributeValue
class or if it should be its own replacement likeJSONata.numberAt
.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
I would either expect to have a new class
software.amazon.awscdk.services.stepfunctions.JSONata
with functions equivalent to those ofsoftware.amazon.awscdk.services.stepfunctions.JSONPath
, or for there to be methods onDynamoAttributeValue
for JSONata.Current Behavior
No ability to translate JSONata paths into Dynamo attributes.
Reproduction Steps
There is no reproduction for this because there is no function to achieve this. The bug is a missing method or class.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.178.0
Framework Version
2.178.0
Node.js Version
v22.8.0
OS
macOS
Language
Java
Language Version
Kotlin 2.1.10 JVM 21
Other information
No response
The text was updated successfully, but these errors were encountered: