Manage Spark Connect

The Snowflake REST Spark Connect API provides the following endpoints to manage Spark Connect:

Snowflake REST Spark Connect API endpoints

EndpointDescription
POST /api/v2/spark-connect/execute-planExecutes a request that contains the query and returns a stream of [[ExecutePlanResponse]].
POST /api/v2/spark-connect/analyze-planAnalyzes a query and return a [[AnalyzeResponse]] containing metadata about the query.
POST /api/v2/spark-connect/configUpdates or fetches the configurations and returns a [[ConfigResponse]] containing the result.
POST /api/v2/spark-connect/add-artifactsAdd artifacts to the session and returns a [[AddArtifactsResponse]] containing metadata about the added artifacts.
POST /api/v2/spark-connect/push-responsePushes Spark response to the GS.
POST /api/v2/spark-connect/pull-requestPulls Spark request from the GS.
POST /api/v2/spark-connect/release-executeReleases a re-attachable execution, or parts thereof.
POST /api/v2/spark-connect/reattach-executeReattaches to an existing re-attachable execution, or parts thereof.
POST /api/v2/spark-connect/interruptInterrupts running executions.
POST /api/v2/spark-connect/artifact-statusCheck statuses of artifacts in the session and returns them in a [[ArtifactStatusesResponse]].

For reference documentation, see Snowflake Spark Connect API reference.