-
On this page: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/example_dynamodb_Scenario_PartiQLSingle_section.html But there's a big issue I have with it and that's supplying parameters as a list/set/tuple/whatever Nothing I've tried works: I've tried it without the brackets in the partiql: The weird part is that if I put the parameters hardcoded in the partiql string it works without problem. Am I using the wrong type on the resource side for the list? (If I use a list as a parameter for a non list action I do get a message that a variable of type S, N, B is needed and not of type L) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @NT-Timm thanks for reaching out. I'm trying to understand what the issue is here, could you share your code snippet to reproduce and debug logs (with any sensitive info redacted) by adding Also here's the boto3 docs link to execute_statement for reference. Best, |
Beta Was this translation helpful? Give feedback.
-
Ok. Someone on reddit pointed me to how to properly put parameters in in IN statement. It seems you have to add a ? for every parameter in the IN and add the corresponding parameter to the parameterlist. Kinda weird but it works. |
Beta Was this translation helpful? Give feedback.
Ok. Someone on reddit pointed me to how to properly put parameters in in IN statement.
It seems you have to add a ? for every parameter in the IN and add the corresponding parameter to the parameterlist.
Kinda weird but it works.
But I would have never thought of this. No example ever shows that this is the way it's supposed to use.