Get job ID in Golang Arrow Flight client

Hi,

we use the Arrow Flight client to execute queries and now we wonder how we can get the job ID so we can link back to https://app.eu.dremio.cloud/job/ ?

Any help will be highly appreciated! Thanks.

Hi there,

Welcome to the Dremio community!

For Arrow Flight, you can try this command to get the most recently executed query ID.

SELECT LAST_QUERY_ID

https://docs.dremio.com/software/sql-reference/sql-functions/functions/LAST_QUERY_ID/?parent=all-functions

Hope this helps!

Cindy

Hi Cindy,

thanks for your answer! I think that will not work for us since we run multiple queries in parallel, also it would add another roundtrip.

Is there a possibility to inject an external ID (uuid) instead?

Best,
Ralf

Hi,

Unfortunately that would be the only method to grab the job ID at this time. I have submitted an enhancement request to show job ID in Arrow Flight to our product team and can update you if we plan to support this in the future :slight_smile:

Cindy

Thanks, much appreciated!

Ralf