Spark & Iceberg
Zingle connects to Apache Spark through its Thrift server to run SQL, introspect your schemas, preview data, and check the impact of changes. Tables can be plain Spark/Hive tables or Iceberg tables in a named catalog.
Requirements
- A Spark Thrift server reachable from Zingle (port 10000 by default).
- A user for Zingle, scoped to least privilege (see below).
- Credentials - a username, plus a password if your server uses LDAP authentication. Per user and/or one organization-level service credential.
Access needed
Zingle never writes to a production target. This is enforced inside the product: every SQL statement sent to production is checked before it runs, and dbt commands that could write refuse to run against production. See the Production safety model.
As a second layer, scope the user you grant to least privilege:
- Read access to the schemas Zingle should introspect and query.
- No privileges to modify your production tables.
- In your development environment, permission to create schemas and tables. Agents build changed models into scratch schemas there. Spark does not remove temporary tables on its own, so Zingle drops what it created when the session closes and sweeps anything left behind.
Connection model
- A connection holds the Thrift host and port, an optional Iceberg catalog, and the table format for temporary tables (plain managed tables, or Iceberg).
- Targets are a schema to run against. A connection can have multiple targets.
- Credentials are either a user's personal credential or an optional organization-level service credential. Both are encrypted. See Credential handling.
When a catalog is set, table search covers every schema in it, and tables are
named catalog.schema.table.
What it enables
- Run SQL to answer questions and preview model output.
- Introspect schemas - list schemas, tables, and columns.
- Check the impact of a change - build the changed models into session scratch schemas in development, then compare the results before and after.
- Migrate to Spark - translate dbt models from another warehouse, such as Snowflake, and monitor the new tables against the old ones. See Migrate & Monitoring.
What it can't do
- Zingle never builds into or writes to production.
- Query results are row-capped (currently 1,000 max). See Data handling.
- Zingle can never do more on the cluster than the user you grant permits.
Common setup issues
- Connection test fails or is slow. Check the host and port, and that the Thrift server is running. A cold cluster can take a while to answer the first query.
- Tables in an Iceberg catalog don't appear. Set the catalog on the connection. Spark only lists a named catalog once it is asked for it by name.
- Impact checks fail to build. The user likely lacks permission to create schemas or tables in development, or the cluster has no Iceberg support while the temporary table format is set to Iceberg.