## Validate SQL `pipelines.validate_sql(PipelineValidateSqlParams**kwargs) -> PipelineValidateSqlResponse` **post** `/accounts/{account_id}/pipelines/v1/validate_sql` Validate Arroyo SQL. ### Parameters - `account_id: str` Specifies the public ID of the account. - `sql: str` Specifies SQL to validate. ### Returns - `class PipelineValidateSqlResponse: …` - `tables: Dict[str, Tables]` Indicates tables involved in the processing. - `id: str` - `name: str` - `type: str` - `version: float` - `graph: Optional[Graph]` - `edges: List[GraphEdge]` - `dest_id: int` - `edge_type: str` - `key_type: str` - `src_id: int` - `value_type: str` - `nodes: List[GraphNode]` - `description: str` - `node_id: int` - `operator: str` - `parallelism: int` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.pipelines.validate_sql( account_id="0123105f4ecef8ad9ca31a8372d0c353", sql="insert into sink select * from source;", ) print(response.tables) ``` #### Response ```json { "result": { "tables": { "foo": { "id": "id", "name": "name", "type": "type", "version": 0 } }, "graph": { "edges": [ { "dest_id": 0, "edge_type": "edge_type", "key_type": "key_type", "src_id": 0, "value_type": "value_type" } ], "nodes": [ { "description": "description", "node_id": 0, "operator": "operator", "parallelism": 0 } ] } }, "success": true } ```