compile_query
Check TimeBase QQL query syntax and return parser diagnostics that identify unexpected tokens to help pinpoint syntax errors.
Instructions
Compile TimeBase QQL query. Returns parser-level diagnostics only (not full semantic/logical validation). error_token is the first unexpected token, which may be after the actual root cause.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | TimeBase QQL query text | |
| instance_key | No | TB instance key. Required when multiple TimeBase instances are configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| valid | Yes | ||
| error_token | No | First unexpected token at parser failure point; may be downstream from root cause. | |
| error_context | No | Short query snippet around parser failure position. | |
| error_position | No |