-
Notifications
You must be signed in to change notification settings - Fork 31
Return the Query ID after execute query in Athena (in 2020) #105
Comments
The Athena JDBC driver 2.0.9 allows you to retrieve the QueryID. You can retrieve the QueryID in the following way:
Please refer to the following document on how to use the JDBC driver. |
I'd like to see you use the Boto3 version if possible. |
Thank you for answering me, @laughingman7743 ! :) I read the links you recommended and some My code is something like you said:
But I got this error, like it is not found this IStatementQueryInfoProvider class:
Can you help me again, please? |
Both my Python environment and my Java is 64 bit. |
I think you have an older version of the JDBC driver. You can update with
|
Thank you again, @laughingman7743 ! We are studying a refactoring to change from PyAthena to Boto3 at my work :) |
There is this already closed issue #9, created and solved in 2017.
It is about get query ID from cursor, and at that time there was a property
cursor.query_id
that solved this issue. But this property was removed from the PyAthenaJDBC code in 2018 (in this commit 8d9b5de#diff-d6a2ffe1ed91aa544f98e96db3d239ca)So, my issue is pretty the same as his :) There is a way to get the query ID in cursor?
The text was updated successfully, but these errors were encountered: