Share via


Spark Session - Get Spark Statements

Spark oturumundaki deyimlerin listesini alır.

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

URI Parametreleri

Name İçinde Gerekli Tür Description
endpoint
path True

string

Çalışma alanı geliştirme uç noktası, örneğin https://myworkspace.dev.azuresynapse.net.

livyApiVersion
path True

string

İstek için geçerli api sürümü.

sessionId
path True

integer

int32

Oturumun tanımlayıcısı.

sparkPoolName
path True

string

Spark havuzunun adı.

Yanıtlar

Name Tür Description
200 OK

SparkStatementCollection

Başarılı

Örnekler

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": []
}

Tanımlar

Name Description
LivyStatementStates
SparkStatement
SparkStatementCollection
SparkStatementOutput

LivyStatementStates

Name Tür Description
available

string

cancelled

string

cancelling

string

error

string

running

string

waiting

string

SparkStatement

Name Tür Description
code

string

id

integer

output

SparkStatementOutput

state

LivyStatementStates

SparkStatementCollection

Name Tür Description
statements

SparkStatement[]

total_statements

integer

SparkStatementOutput

Name Tür Description
data

object

ename

string

evalue

string

execution_count

integer

status

string

traceback

string[]