Share via


Spark Session - Get Spark Statement

Spark 세션 내에서 단일 문을 가져옵니다.

GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements/{statementId}

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
endpoint
path True

string

작업 영역 개발 엔드포인트(예: https://myworkspace.dev.azuresynapse.net )입니다.

livyApiVersion
path True

string

요청에 대한 유효한 api-version입니다.

sessionId
path True

integer

int32

세션의 식별자입니다.

sparkPoolName
path True

string

spark 세션의 이름입니다.

statementId
path True

integer

int32

문의 식별자입니다.

응답

Name 형식 Description
200 OK

SparkStatement

Success

예제

Gets a single statement within a spark session.

Sample Request

GET myWorkspace.dev.azuresynapse.net/livyApi/versions/2020-12-01/sparkPools/mySparkPool/sessions/123/statements/123

Sample Response

{
  "id": 123,
  "code": "fill in here",
  "state": "fill in here",
  "output": null
}

정의

Name Description
LivyStatementStates
SparkStatement
SparkStatementOutput

LivyStatementStates

Name 형식 Description
available

string

cancelled

string

cancelling

string

error

string

running

string

waiting

string

SparkStatement

Name 형식 Description
code

string

id

integer

output

SparkStatementOutput

state

LivyStatementStates

SparkStatementOutput

Name 형식 Description
data

object

ename

string

evalue

string

execution_count

integer

status

string

traceback

string[]