> For the complete documentation index, see [llms.txt](https://docs.zingg.ai/zingg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zingg.ai/zingg/connect-your-data/connect-cloud-warehouses/connect-azure-databricks.md).

# Connect Azure Databricks

Connect Zingg to Azure Databricks using CsvPipe (Community) or ECsvPipe and UCPipe (Enterprise). Supports CSV, Parquet, Avro, JSON, Delta, and Unity Catalog

{% hint style="info" icon="right-long" %}
All standard Spark formats (CSV, Parquet, JSON, Avro) are available in Community. Delta format and Unity Catalog are Enterprise only.
{% endhint %}

### Prerequisites

On Azure Databricks, data sits in cloud storage (Azure Data Lake Storage Gen2) or in Unity Catalog tables. Use the `abfss://` path format to connect Zingg to cloud storage paths, or use `UCPipe` (Enterprise only) for governed Unity Catalog tables. All standard Spark formats — CSV, Parquet, JSON, Avro — are available in both Community and Enterprise; Delta format and Unity Catalog are Enterprise-only. For the full Zingg installation, cluster setup, and any additional dependency configuration required on Databricks clusters, follow the [Azure Databricks Platform Guide](/zingg/platform-guides/platform-guide-for-azure-databricks.md).

### **Python API - Community**

{% hint style="info" icon="right-long" %}
`dbfs:/` paths are deprecated in Databricks. Use Unity Catalog paths for tables or cloud storage paths (`s3a://`, `abfss://)` for files. For Unity Catalog table access, Enterprise uses UCPipe, see below.
{% endhint %}

```python
from zingg.client import*
from zingg.pipes import*

schema = "id string, fname string, \
lname string, stNo string, add1 string, \
add2 string, city string, \
areacode string, state string, \
dob string, ssn string"

inputPipe = CsvPipe("databricksInput", "dbfs:/FileStore/input.csv", schema)
args.setData(inputPipe)

outputPipe = CsvPipe("databricksOutput", "dbfs:/tmp/zinggOutput")
args.setOutput(outputPipe)
```

### Python API - Enterprise

{% hint style="danger" icon="right-long" %}
**Enterprise** uses `ECsvPipe`. Supports all formats including Delta and Unity Catalog.
{% endhint %}

```python
from zinggEC.enterprise.common.epipes import*
from zinggEC.enterprise.common.EArguments import*
```

For CSV or Parquet fields in cloud storage

```python
schema = "rec_id string, fname string, \
lname string, stNo string, add1 string, \
add2 string, city string, \
areacode string, state string, \
dob string, ssn string"

inputPipe = ECsvPipe("databricksInput", "abfss://path/to/input.csv", schema)
args.setData(inputPipe)

outputPipe = ECsvPipe("databricksOutput", "abfss://path/to/output")
outputPipe.setHeader("true")
args.setOutput(outputPipe)
```

For Unity Catalog tables

```python
inputPipe = UCPipe("databricksInput", "catalog.schema.tablename")
args.setData(inputPipe)
```

{% hint style="info" icon="right-long" %}
Enterprise supports Unity Catalog via UCPipe. Replace catalog, schema, and tablename with your Unity Catalog path. UCPipe is recommended for governed Delta tables in Databricks Enterprise deployments.
{% endhint %}

### Supported file formats

#### Parquet

```json
{
  "data" : [ {
    "name" : "parquetInput",
    "format" : "parquet",
    "props" : {
      "path" : "/path/to/input.parquet"
    }
  } ]
}
```

#### Delta format—Enterprise only

```json
{
  "data" : [ {
    "name" : "deltaInput",
    "format" : "delta",
    "props" : {
      "location" : "/path/to/delta/table"
    }
  } ]
}
```

#### Avro

```json
{
  "data" : [ {
    "name" : "avroInput",
    "format" : "avro",
    "props" : {
      "path" : "dbfs:/FileStore/input.avro"
    }
  } ]
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zingg.ai/zingg/connect-your-data/connect-cloud-warehouses/connect-azure-databricks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
