Run a read-only query
queryRun read-only ClickHouse queries (SELECT/SHOW/DESCRIBE) to retrieve rows while preventing data modifications. Ideal for schema exploration and analytics with capped results.
Instructions
Run a SELECT/SHOW/DESCRIBE query and return rows. Non-read statements are refused here — use execute (read-write mode) for those. Results are capped at CLICKHOUSE_MAX_ROWS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A single read-only SQL statement |