Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use execution parameters in Athena backend #7587

Closed
ori-n opened this issue Apr 10, 2024 · 2 comments · Fixed by #7647
Closed

Use execution parameters in Athena backend #7587

ori-n opened this issue Apr 10, 2024 · 2 comments · Fixed by #7647

Comments

@ori-n
Copy link

ori-n commented Apr 10, 2024

I'm trying to update the AthenaBackend, so I will be able to create a mock based on common SQL statements I use in my tests.
I changes the start_query_execution and get_query_results methods, and it works well for me.

I'm missing in both statements the query execution parameters, which are used by Athena prepared statements. Is there any option to get to this information and use it?
see examples for parameterized queries here: https://docs.aws.amazon.com/athena/latest/ug/querying-with-prepared-statements.html

Thanks

@bblommers
Copy link
Collaborator

Hi @ori-n, thanks for raising this. Did you mean the get_query_execution-operation? That is now part of moto >= 5.0.7.dev13, it will return the execution parameters set by start_query_execution.

@ori-n
Copy link
Author

ori-n commented May 1, 2024

I just checked it and it works as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants