Run query

Preview a SQL query.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
path Parameters
project
required
string

The project name.

Request Body schema: application/json
required
query
required
string

SQL query to run for preview.

convertToString
required
boolean

Stringify values in the query results.

limit
integer <int32>

End-result limit of the query.

sourceLimit
integer <int32>

Limit for how many rows to download from the data sources.

inferSchemaLimit
integer <int32>

Limit for how many rows that are used for inferring schema. Default is 10,000.

timeout
integer <int32>

Number of seconds to wait before cancelling a query. The default, and maximum, is 240.

Responses
200

Response with resulting rows from the query.

400

The response for a failed request.

403

The response for a forbidden request.

post/transformations/query/run
Request samples
application/json
{
  • "query": "string",
  • "convertToString": true,
  • "limit": 0,
  • "sourceLimit": 0,
  • "inferSchemaLimit": 0,
  • "timeout": 0
}
Response samples
application/json
{
  • "schema": {
    • "items": [
      ]
    },
  • "results": {
    • "items": [
      ]
    }
}