v1

latestSwagger 2.02026-07-17586981.0 KB
prime

Primes a response for a given query for a particular node

post/prime/{clusterId}/{dataCenterId}/{nodeId}

Path parameters

clusterIdstring required

Id or name of the cluster

dataCenterIdstring required

Id or name of the datacenter

nodeIdstring required

Id or name of the node

Request body

Example request

{
  "when": {
    "query": "SELECT * FROM tbl"
  },
  "then": {
    "result": "success",
    "rows": [
      {
        "key": 0,
        "description": "Important dates",
        "dates": {
          "independence day": "1776-07-04",
          "washington's birthday": "1732-02-22"
        }
      },
      {
        "key": 1,
        "description": "Other fun dates",
        "dates": {
          "new years day": "2017-01-01",
          "leap day": "2020-02-29",
          "end of mayan calendar": "2012-12-21"
        }
      }
    ],
    "column_types": {
      "key": "bigint",
      "description": "ascii",
      "dates": "map<ascii,date>"
    }
  }
}

Response

PrimedQuery

Example response

{
  "when": {
    "query": "SELECT * FROM tbl"
  },
  "then": {
    "result": "success",
    "rows": [
      {
        "key": 0,
        "description": "Important dates",
        "dates": {
          "independence day": "1776-07-04",
          "washington's birthday": "1732-02-22"
        }
      },
      {
        "key": 1,
        "description": "Other fun dates",
        "dates": {
          "new years day": "2017-01-01",
          "leap day": "2020-02-29",
          "end of mayan calendar": "2012-12-21"
        }
      }
    ],
    "column_types": {
      "key": "bigint",
      "description": "ascii",
      "dates": "map<ascii,date>"
    }
  }
}