Commit 2ca440b
authored
fix: parse query_tags string into List[QueryTag] for execute_statement (#359)
The SDK's StatementExecutionAPI.execute_statement() expects
query_tags as Optional[List[QueryTag]], but executor.py passed
the raw string directly, causing:
'str' object has no attribute 'as_dict'
Parse "key:value,key2:value2" format into QueryTag objects.
Handles edge cases: empty strings, colons in values, spaces,
malformed entries (gracefully skipped).
Fixes #3581 parent a183359 commit 2ca440b
File tree
1 file changed
+7
-1
lines changed- databricks-tools-core/databricks_tools_core/sql/sql_utils
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
0 commit comments