Hello @hobrob_ex ,
query_tags is a Databricks feature, but (as of the current docs) it’s not set via a SQL statement like Teradata query banding / Snowflake ALTER SESSION
A per the docs, you need to pass it via session configuration
from databricks import sql
with sql.connect(
server_hostname="...",
http_path="...",
access_token="...",
session_configuration={"query_tags": "team:engineering,dashboard:abc123,env:prod"}
) as conn:
with conn.cursor() as cur:
cur.execute("SELECT 1")
Doc link:https://docs.databricks.com/aws/en/dev-tools/python-sql-connector#query-tags
Anudeep