You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this will only tell you the query ID after results are available, which might be a long time for big queries. The other way is to add a progress monitor to Statement:
The progress monitor is called many times during execution (with the latest stats each time). This callback happens inline, on the thread executing the query, so don't do anything slow or expensive here.
Note that Presto doesn't really have the concept of a session ID
I'm developing a software with Presto JDBC, and would like to get query's session ID to cancel the statement later in another thread.
In MySQL, I can get the ID as in:
long id = statement.getConnection().unwrap(MySQLConnection.class).getId();
(statement is an object of
java.sql.Statement
)How can I get Presto statement's unique session ID? I'm looking into Presto JDBC document and sources but can't find it.
Before the query and not in the resultset
Any ideas or suggestions would be appreciated so much.
The text was updated successfully, but these errors were encountered: