Retrieve latest query results by query id
GET {{baseUrl}}/queries/:id/executionJobs/latestResults
Returns query results. Results can be either REST or FILE. If resulttype is FILE then resultDetail will show the file details. If resultType is REST then result data will show as apart of data object.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Range | string | Part of a file to return in Bytes, eg bytes=200-600 | |
Accept | string |
RESPONSES
status: OK
{"status":"CURRENT","timestamp":"2019-10-01T08:06:49.152Z","resultType":"FILE","resultDetail":{"fileType":"PARQUET","basePath":"data/ten=\u003ctenantname","location":"/sdiresults/\u003cqueryid\u003e/\u003cexecutionjobId\u003e/\u003ctimestamp\u003e/"},"data":[{"vehicle.vin":"MH1234","make.def":"sampleDef"}]}