Azure Synapse Analytics · Arazzo Workflow
Azure Synapse Analytics Open Spark Session and Run Statement
Version 1.0.0
Create an interactive Spark session, wait until idle, then run a statement.
View Spec
View on GitHub
AnalyticsApache SparkBig DataData IntegrationData WarehouseETLSQLArazzoWorkflows
Provider
Workflows
open-spark-session-and-run-statement
Start a Spark session, wait for it to be idle, and run a code statement.
Creates a Spark session, loops on reading the session until its livy state is idle, then submits a code statement against the ready session.
1
createSession
SparkSession_CreateSparkSession
Create a new interactive Spark session on the pool.
2
waitForIdle
SparkSession_GetSparkSession
Poll the session until its livy currentState is idle. Loop back while it is still starting; proceed once it is ready.
3
runStatement
SparkSession_CreateSparkStatement
Submit a code statement to the ready Spark session.