Skip to content

Add query_tags support to execute_sql and Statement Execution API (#193)#215

Merged
calreynolds merged 1 commit intodatabricks-solutions:mainfrom
yogesh-dbx:fix/193-query-tags-support
Mar 5, 2026
Merged

Add query_tags support to execute_sql and Statement Execution API (#193)#215
calreynolds merged 1 commit intodatabricks-solutions:mainfrom
yogesh-dbx:fix/193-query-tags-support

Conversation

@yogesh-dbx
Copy link
Collaborator

  • Add optional query_tags parameter to execute_sql, execute_sql_multi
  • Pass query_tags through SQLExecutor, SQLParallelExecutor to API
  • Add query_tags to MCP execute_sql and execute_sql_multi tools
  • Format: string 'key:value,key2:value2' per Databricks API spec
  • Enables cost attribution, debugging, and governance in Query History
  • Add unit tests for query_tags passthrough

…tabricks-solutions#193)

- Add optional query_tags parameter to execute_sql, execute_sql_multi
- Pass query_tags through SQLExecutor, SQLParallelExecutor to API
- Add query_tags to MCP execute_sql and execute_sql_multi tools
- Format: string 'key:value,key2:value2' per Databricks API spec
- Enables cost attribution, debugging, and governance in Query History
- Add unit tests for query_tags passthrough
@yogesh-dbx yogesh-dbx requested a review from calreynolds March 5, 2026 14:58
@calreynolds calreynolds merged commit a0371cb into databricks-solutions:main Mar 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support query_tags in execute_sql / Statement Execution API

2 participants