sqlmesh icon indicating copy to clipboard operation
sqlmesh copied to clipboard

Support Databricks query tags in session properties

Open WhammyLeaf opened this issue 6 months ago • 2 comments

SQLMesh supports session_properties on models and model defaults, but the Databricks engine adapter does not currently forward session_properties.query_tags to the Databricks SQL connector.

This prevents users from applying model/session-level Databricks query tags for cost attribution, observability, ownership reporting, and other Databricks query-history workflows.

WhammyLeaf avatar May 15 '26 16:05 WhammyLeaf

I have a PR with a fix here

WhammyLeaf avatar May 15 '26 16:05 WhammyLeaf

And the PR now should pass the broken tests: https://github.com/SQLMesh/sqlmesh/pull/5794

WhammyLeaf avatar May 18 '26 09:05 WhammyLeaf