Question:
Is there anyway to get the Athena query ID
for a query I submit Athena JDBC driver? Any API calls to the status of a Query (with its query ID?)
Any way to get the query history via API call?
Answer:
I am using the following piece of code to retrieve the query id:
1 2 3 |
AthenaResultSet rs = (AthenaResultSet) statement.executeQuery(query); Object queryId = ((AthenaStatementClient)rs.getClient()).getQueryExecutionId(); |