szymon_dybczak
Esteemed Contributor III

Hi @stefan_erste ,

I'll check with the exact same cluster setting tomorrow's morning. 

In the meantime - do you use some special characters in your tag's key or value?

Because if you have unusual tags like below - in this case I have dollar sign in my key and space in my tag value I get the same error:

szymon_dybczak_0-1757361181180.png

To mitigate that you need to escape using backtick, like below:

tags = [
    "`my_tag$` = `my tag value`"    
]
for tag in tags:
    query_template = f"SET TAG ON COLUMN default.employees.Id {tag}"
    #print(query_template)
    spark.sql(query_template)

With backticks it works as expected and I can use non standard characters to define tag's key and value:

szymon_dybczak_1-1757361293178.png

And as a prove that it worked, here an output from information_schema.column_tags:

szymon_dybczak_2-1757361369063.png