Share via


Spark Session - Get Spark Statements

Spark 세션 내의 문 목록을 가져옵니다.

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

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 세션의 이름입니다.

응답

Name 형식 Description
200 OK

SparkStatementCollection

Success

예제

Gets a list of statements within a spark session.

Sample Request

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

Sample Response

{
  "total_statements": 2,
  "statements": []
}

정의

Name Description
LivyStatementStates
SparkStatement
SparkStatementCollection
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

SparkStatementCollection

Name 형식 Description
statements

SparkStatement[]

total_statements

integer

SparkStatementOutput

Name 형식 Description
data

object

ename

string

evalue

string

execution_count

integer

status

string

traceback

string[]