2 Answers
- Newest
- Most votes
- Most comments
0
No, I'm not looking for the Execution Id. That would be the id for a query run. I'm looking for a way to find the NamedQueryId for a Named Query from console.
answered 2 years ago
0
Hi ,
based on the documentation link you shared I think that the id you are looking for is the **Execution Id**
. If want to check click on the failed query and look at the Query Id you will see it should match the execution id.
hope this helps,
Relevant content
- Accepted Answer
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago
Thank you for the clarification, could you also let me know how you want to use the Named query ID?
As mentioned the NamedQueryId is different from the QueryId (in the Recent Queries tab for Failed execution query id = execution id).
in the Saved Queries tab, you can see all the Named query in the workspace you are using, that tab shows the Actual Name of the query , the SQL and the description.
the only thing missing is the database and the Named query Id itself, https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_named_query