Presto: Jdbc for Query ID

Created on 19 Mar 2018  路  2Comments  路  Source: prestodb/presto

When I use jdbc to get data.

And I want to know job status, like Web UI.
What should I do?

Most helpful comment

There is also PrestoStatement.setProgressMonitor()

I filed an issue to document it: https://github.com/prestodb/presto/issues/10175

All 2 comments

If you are using open source jdbc drivers then you can:

ResultSet rs = ...;
verify(rs.isWrappedFor(PrestoResultSet.class);
Strring queryId = rs.unwrap(PrestoResultSet.class).getQueryId();

There is also PrestoStatement.setProgressMonitor()

I filed an issue to document it: https://github.com/prestodb/presto/issues/10175

Was this page helpful?
0 / 5 - 0 ratings