Skip to content

fix(query): emit workspace() scope as a plain literal - #6

Merged
danieltruong merged 2 commits into
mainfrom
fix-workspace-ref
Sep 6, 2026
Merged

danieltruong merged 2 commits into
mainfrom
fix-workspace-ref

Conversation

@danieltruong

Copy link
Copy Markdown
Collaborator

Log Analytics rejects workspace(@'guid') with SEM0260 "Unknown function: 'workspace'", so every errors measure and every DEMI union answered 502 on test. The workspace ref is pattern-checked before use, so a plain quoted string is safe there. Filter values keep the verbatim literal.

Also logs the inner error chain when the query API refuses a request, and adds demi=true to the log line so a DEMI union no longer shares an identity with the same rollup query.

Verified against the live test workspace: the errors query and the DEMI union both return rows with the plain literal.

Log Analytics rejects workspace(@'guid') with SEM0260 "Unknown
function: 'workspace'", so every errors measure and every DEMI union
answered 502. The ref is pattern-checked, so a plain quoted string is
safe. Log the inner error chain on a refused query, and tell a DEMI
union apart from the same rollup query in the log line.
Service messages can quote query text; codes carry the diagnosis.
@danieltruong
danieltruong merged commit 5a03e94 into main Sep 6, 2026
3 checks passed
@danieltruong
danieltruong deleted the fix-workspace-ref branch September 6, 2026 06:05
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.

1 participant