export_query
Run arbitrary read-only SQL to export query results to a file, returning a link for retrieval. Handles complex queries like joins and custom aggregates that standard exports don't cover.
Instructions
Run arbitrary read-only SQL straight to a file; return a link, not rows.
The export escape hatch, for shapes export_series does not cover (joins
against run, multi-index array columns, custom aggregates). Same
contract as export_series: read the returned URL from your code
execution environment rather than into context.
Runs in a READ ONLY transaction. Prefer run_query when you only need to
look at a handful of rows yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| car | No | ||
| sql | Yes | ||
| format | No | csv |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||