Apache Livy · JSON Structure

Rest Api Statement Request Structure

Request to execute a code statement

Type: object Properties: 2 Required: 1
Big DataInteractive ComputingOpen SourceRESTSpark

StatementRequest is a JSON Structure definition published by Apache Livy, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

code kind

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "type": "object",
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-livy/refs/heads/main/json-structure/rest-api-statement-request-structure.json",
  "name": "StatementRequest",
  "description": "Request to execute a code statement",
  "properties": {
    "code": {
      "type": "string",
      "description": "Code to execute",
      "example": "1 + 1"
    },
    "kind": {
      "type": "string",
      "description": "Code type (defaults to session kind)",
      "enum": [
        "spark",
        "pyspark",
        "sparkr",
        "sql"
      ]
    }
  },
  "required": [
    "code"
  ]
}