Skip to content

Insert query ID in adapter response #186

@louis-zhang-unity3d

Description

@louis-zhang-unity3d

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 Trino query_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 the trino.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?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions