Skip to main content
Beta feature — Query Analyzer is disabled by default and available on demand. Contact your StarTree account team to have it enabled for your environment.
Query Analyzer exposes two REST endpoints on the StarTree Cloud data-manager service. Both return the same unified response structure.

Endpoints

Authentication and Headers

All requests require a valid StarTree Cloud Bearer token. The workspace header scopes the request to a specific workspace.

POST /api/data/manager/api/query-analyzer/static-analysis

Analyzes a SQL query using only table metadata and explain plan. Does not execute the query. Returns results within seconds.

Request Body

Example Request

Example Response


POST /api/data/manager/api/query-analyzer/runtime-analysis

Executes the query against your Pinot cluster using the multi-stage engine (MSE), collects stage execution statistics, then produces evidence-backed findings tied to measured operator metrics. If the query is not MSE-compatible, the service automatically falls back to static analysis. The response analysisType field reflects which mode was used, and mseIncompatibleReason is populated on fallback.

Request Body

Runtime analysis executes your query against the cluster. For very large or expensive queries, run static analysis first to catch structural issues before spending compute.

Example Request

Example Response


Response Schema

Both endpoints return a QueryAnalysisResponse object.

Error Response

When a request fails, the response body contains an error object and the HTTP status reflects the failure category.
Common HTTP status codes:

How to Use Query Analyzer

Step-by-step guide to running analysis from the Query Console and via API.

Understanding Recommendations

Full reference for every finding type, recommendation category, operator type, and evidence field in the response.

Security and Compliance

What data is sent to the LLM, access controls, and platform compliance posture.