I have a scenario where The data is structured such as this.
{
"PartitionKey": "foobar",
"SomeDict": {
"10": "a value",
"20": "another value",
...
}
}
I want to have a projection expression to only read one of the values. The "naive" way would be to do the following query:
get_item(
Key={"PartitionKey": "foobar"},
ProjectionExpression="SomeDict.10"
)
But it fails with the following error: An error occurred (ValidationException) when calling the GetItem operation: Invalid ProjectionExpression: Syntax error; token: "10", near: ".10"
Is there a way to have projection expressions on keys that are integers, or is that a limitation?
Thanks!