v

latestOpenAPI 3.1.02026-08-081,0211,3082.1 MB
Copilot

Analyze Query Static Endpoint

Perform static analysis on a SQL query without executing it.

This endpoint analyzes the query structure to identify potential issues such as SELECT *, functions in JOIN/filter conditions, missing LIMIT, and Cartesian products.

Args: request: Contains the SQL query and optional dialect (default: snowflake)

Returns: Analysis results with identified issues and recommendations

post/copilot/quickchat/query-static-analysis

Headers

x-tenantstring

Request body

sqlstring required
dialectstring nullable

Response

Successful Response

successboolean required
querystring nullable
dialectstring nullable
issue_countinteger
errorstring nullable