run_query
Execute SQL SELECT queries on your Bauplan data catalog to retrieve data using optional branch or commit references and namespaces.
Instructions
Execute a SQL SELECT query on the user's Bauplan data catalog, returning results as a QueryOut object using a query, optional ref, and optional namespace. Executes a SQL query against the user's Bauplan data lake.
Args: query: SQL query to execute ref: a reference to a commit that is a state of the user data lake: can be either a hash that starts with "@" and has 64 additional characters or a branch name, that is a mnemonic reference to the last commit that follows the "username.name" format. namespace: Optional namespace to use.
Returns: QueryOut: Response object with query results or error
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| ref | No | ||
| namespace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| data | Yes | ||
| metadata | No | ||
| error | No |