On this page

    Endpoints

    Introduced in Dremio 2.0.0.

    Submit a SQL query

    POST /api/v3/sql
    

    Input

    {
      "sql": String,
      "context": [String] [optional]
    }
    

    sql represents the SQL query you want to run.

    context is an optional path for the query to run in.

    Output

    {
      "id": String
    }
    

    Returns a job id. Monitoring of the job status and fetching results needs to be completed using the Jobs endpoint.