Skip to main content
POST
Save SQL as a query

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Save SQL you wrote as a query, without running the crew.

job_name
string
required
Required string length: 1 - 120
sql
string
required

Trino SQL — a SELECT.

Minimum string length: 1
federated
boolean
default:false

Run on Trino across catalogs, instead of on Spark.

Response

Successful Response

The outcome of editing a data-engineering query.

id
string<uuid>
required
query
string
required

The SQL now stored.

editable_sql
string
required
preview
DataResponse · object | null
jobs_updated
DataEngScheduledJob · object[]

Scheduled jobs whose DAG now runs the new SQL.

jobs_failed
DataEngScheduledJob · object[]

Scheduled jobs still running the OLD SQL because their DAG could not be rewritten.