Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pipes and Data Connections

What a Zingg pipe is and how you configure one to connect your data.

A Zingg pipe is a configuration object that tells Zingg where to find your source data and where to write resolved output. It is how Zingg connects to your datastore, whether that is a CSV file, a Delta table, a Snowflake table, a Parquet path on S3, or any other Spark-supported connector.

You configure a pipe by giving it a name, a format, and the connection properties for your specific datastore. The pipe is then passed to your Zingg arguments object args.setData(). for input, args.setOutput() for output.

What every pipe configuration contains

Every pipe, whether input or output, has three attributes.

Attribute
What it does

name

A unique label for this pipe. Used internally by Zingg to identify the data source or destination in logs and output.

format

The Spark connector format string for your datastore: csv, parquet, delta, net.snowflake.spark.snowflake, jdbc, avro, and others.

props / options

The connection properties are passed to spark.read and spark.write path, delimiter, header, credentials, and any connector- specific settings.

Configuring a pipe

You can configure pipes in two ways. Both work in Community and Enterprise. Use whichever fits your workflow.

Create pipe objects and attach them to your arguments object.

Community

from zingg.client import *
from zingg.pipes import *

Input Pipe

inputPipe = CsvPipe(
    "testFebrl",
    "examples/febrl/test.csv",
    schema)
args.setData(inputPipe)

Output Pipe

outputPipe = CsvPipe(
    "resultFebrl",
    "/tmp/febrlOutput")
args.setOutput(outputPipe)

Enterprise

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

Input Pipe

inputPipe = ECsvPipe("testFebrl", "examples/febrl/test.csv", schema)
args.setData(inputPipe)

Output Pipe

outputPipe = ECsvPipe("resultFebrl", "/tmp/febrlOutput")
outputPipe.addProperty("header", "true")
args.setOutput(outputPipe)

Define pipes in the data and output sections of your JSON config file.

Community

Enterprise

What you can connect Zingg to

Zingg connects to any datastore that has a Spark connector, plus Snowflake natively in Enterprise. The pipe format string is all that changes.

Datastore
Format string
Edition

CSV / TSV

csv

All

Parquet

parquet

All

Avro

avro

All

JSON

json

All

Delta tables (Databricks)

delta

All

Unity Catalog (Databricks)

delta

All

OneLake / Fabric

abfss:// path + csv or parquet

All

Snowflake (as data source via Spark)

net.snowflake.spark.snowflake

All

Snowflake (native — no Spark cluster)

Configured via Snowflake properties file—no pipe class

Enterprise

AWS S3

csv / parquet via s3a://

All

Google Cloud Storage

csv / parquet via gs://

All

BigQuery

com.google.cloud.spark.bigquery

All

PostgreSQL / MySQL / JDBC

jdbc

All

Cassandra

org.apache.spark.sql.cassandra

All

MongoDB

mongo

All

Neo4j

org.neo4j.spark.DataSource

All

Exasol

com.exasol.spark

All

Redshift

jdbc (redshift driver)

All

Last updated

Was this helpful?