How to specify file name when executing query via Athena API client (Boto3)?

I have a query string and using the start_query_execution() method, I'm right now able to run my query via Athena and get the results in the form of a CSV file in my S3 bucket.

However, the file's name is a bunch of random characters and I'd like to be able to give it a name in order to reference it in other applications (e.g. QuickSight).

From what I can see, the start_query_execution() method only contains the following parameters: QueryString, QueryExecutionContext, and ResultConfiguration in which I'm providing my S3 path.

How would I be able to give my query results file a specific name?



Read more here: https://stackoverflow.com/questions/68463189/how-to-specify-file-name-when-executing-query-via-athena-api-client-boto3

Content Attribution

This content was originally published by Ricardo Francois at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: