query_data
Run read-only SELECT queries against Trino and Pinot lakehouses, validated and budget-checked before execution to return row-capped, governed results.
Instructions
Run a read-only SELECT and get the rows back.
Write a single SELECT in the engine's dialect. The query is checked
for safety, priced against your budget, and executed with a row cap —
so name the columns you need (no SELECT *), and add WHERE filters to
keep the scan small. If it is rejected, the message says what to fix.
Describe the tables first so column and table names are exact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| columns | Yes | ||
| warnings | No | ||
| row_count | Yes | ||
| truncated | No |