# Spark SDK

In addition to its native integration with Databricks, Tonic Structural also supports Spark through an SDK.

The Spark SDK allows you to incorporate Structural directly into existing Spark programs and workflows.

The Structural Spark SDK is written in Java. It can be used in existing Java, PySpark, and Scala Spark programs.

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Overview of the Spark SDK integration</strong></td><td>How Structural data generation works with the Spark SDK.</td><td></td><td><a href="spark-sdk/connectors-spark-sdk-process-overview">connectors-spark-sdk-process-overview</a></td></tr><tr><td><strong>Structural differences and limitations</strong></td><td>Features that are unavailable or work differently in Spark SDK workspaces.</td><td></td><td><a href="spark-sdk/spark-sdk-tonic-differences">spark-sdk-tonic-differences</a></td></tr><tr><td><strong>Configure workspace data connections</strong></td><td>Data connection settings for Spark SDK workspaces.</td><td></td><td><a href="spark-sdk/spark-sdk-workspace-data-connections">spark-sdk-workspace-data-connections</a></td></tr><tr><td><strong>Set up the Spark SDK</strong></td><td>Generate an API token and download the JAR file.</td><td></td><td><a href="spark-sdk/setting-up-the-spark-sdk">setting-up-the-spark-sdk</a></td></tr><tr><td><strong>Run data generation from Spark</strong></td><td>Use the Structural SDK to run data generation on Spark SDK workspaces.</td><td></td><td><a href="spark-sdk/using-spark-to-run-de-identification-of-the-data">using-spark-to-run-de-identification-of-the-data</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tonic.ai/app/setting-up-your-database/spark-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
