Query

Get

Any query resource returned by a get request will contain the following properties:

{
    "kind": "query",
    "uri": string,
    "id": string,
    "status": string("queued","running","completed","failed"),
    "errorMessage": string,
    "outputNumRows": integer,
    "outputNumBytes": integer,
    "outputSchema": [
        { 
            "name": string,
            "type": string("string", "float", "integer", "boolean", "date", "dateTime", "time", "geography")
        }   
    ],
}

Documentation

field

Get

kind

string

The resource type. Will always be "query".

uri

string

The fully qualified URI of this query, for use in generating calls to this API.

For example, /queries/1234

id

integer

The unique identifier for the query

status

string

The current status of the query. Will be one of "queued", "running", "completed", "failed"

errorMessage

string

If status == "failed", will provide additional information about what cause the query failure.

outputNumRows

integer

The number of rows in the query result. Will be null until the query status is completed

outputNumBytes

integer

The number of bytes in the query result. Will be null until the query status is completed

outputSchema[]

array(object)

Information about the schema (columns) of the query result. Will be null until the query status is completed

outputSchema[].name

string

The name of the column

outputSchema[].type

string

The type of the column. Will be one of:

"string", "float", "integer", "boolean", "date", "dateTime", "time", "geography"

Last updated