Data sources
Execute a SQL query against a data source
Executes a SQL query against the specified data source and returns the results.
This endpoint allows you to run ad-hoc SQL queries for data exploration, validation, or analysis. The query is executed using the data source’s native query runner with the appropriate credentials.
Streaming mode: Use query parameter ?stream=true or set X-Stream-Response: true header.
Streaming is only supported for certain data sources (e.g., Databricks).
When streaming, results are sent incrementally as valid JSON for memory efficiency.
Returns:
- Query results as rows with column metadata (name, type, description)
- Limited to a reasonable number of rows for performance
POST
Execute a SQL query against a data source
Authorizations
Use the 'Authorization' header with the format 'Key '
Headers
Path Parameters
Query Parameters
Stream results as JSON
Body
application/json
Previous
Get a data source summaryGet a summary of a specific data source by ID via the Datafold API.
Next
Execute a SQL query against a data source
