-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert query ID in adapter response #186
Comments
@louis-zhang-unity3d could you please add more details regarding the benefit part? Where could the query id be used/persisted for being further used? Do you mean something like a time series db label?
Can you please share any documentation/code reference for any of the above mentioned adapters? |
@findinpath The Examples of the other adapters including this are |
Hi @louis-zhang-unity3d, I think that change is very logical and welcome but we should probably also add a public field |
I added a PR on trino-python-client to expose the @louis-zhang-unity3d : If you want you can already start working on it, ping us if you need some help! |
Whats the status for this, @louis-zhang-unity3d ? I am looking for the same as well. |
@mdesmet could I get permissions to push to a remote branch and open a PR? thanks! |
You would need to create a fork of |
Do you all think it make sense to store the compiled query as well? Good to have similar to how snowflake adapter is doing. I think query_id and _message is already covered above.
|
Describe the feature
Currently the adapter response of the Trino connector is by default a "SUCCESS" message . By looking up in the table
system.runtime.queries
, the Trinoquery_id
provides access to useful performance metadata that can be used for observability. Including this attribute in the adapter response would greatly enhance observability of dbt models by enabling traceability for each model run.The
query_id
can be accessed by the._query.query_id
attribute of thetrino.dbapi.Cursor
object.Other dbt providers (i.e. BigQuery, Snowflake) add a similar ID to their adapter response as well.
Describe alternatives you've considered
No response
Who will benefit?
This will benefit all data teams looking to monitor the performance of their dbt model runs over time, e.g. runtime, successes/failures, etc. Each dbt model run can be tied back to underlying metadata within trino itself.
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: