Skip to main content
Not in a StarTree Cloud release yet. Contact StarTree support to find out when it’s available for your environment. There’s no Data Portal flow for these tables, so you onboard them with SQL DDL or a table config.
type = 'delta' reads a Delta table’s transaction log directly, so the table doesn’t need Iceberg reads (UniForm) turned on. Delta tables that do have UniForm can still be read as Iceberg through Unity Catalog. You point Pinot at a table in one of two ways:

Unity Catalog prerequisites

  • The workspace URL as catalog_uri, with nothing after the host: This is the workspace URL itself, not the /api/2.1/unity-catalog/iceberg-rest URL used for Iceberg tables. Other hosts, including custom domains, are rejected.
  • A principal to authenticate as: a service principal with an OAuth secret (OAuth M2M), or a personal access token. Pinot gets OAuth tokens from the workspace’s /oidc/v1/token endpoint with the all-apis scope. You can’t change either.
  • Grants for that principal: USE CATALOG on the catalog, USE SCHEMA on the schema, and SELECT on the table. To have Unity vend storage credentials (storage.access_policy = 'unity'), also grant EXTERNAL USE SCHEMA on the schema and turn on external data access for the metastore. Prepare Databricks shows how to create the principal and run the grants.

Create the table

From Unity Catalog with OAuth, on S3 with Unity-vended credentials:
Send it to POST /sql/ddl as described in SQL DDL. Add ?dryRun=true to compile and validate without creating anything. Pinot picks the snapshot it will start from, infers the schema from that snapshot, reads one data file to check storage access, and creates an OFFLINE table.
  • OAuth. client_id and client_secret imply auth_type = 'oauth'. Leave out oauth_scope and oauth_token_uri; they’re rejected.
  • Personal access token. Replace the two OAuth lines with token = 'srn2:secret#<pat-reference>'. Use OAuth or a token, not both.
  • Authentication is required for a Unity table, even when storage uses your own keys.
  • table_name defaults to the Pinot table name. catalog_type is optional, and unity is the only value it takes.
  • Deleted rows. Add 'enableDeletionVectors' = 'true' to hide rows deleted through Delta deletion vectors. Without it, those rows stay visible.

Storage

With unity, Unity issues read-only credentials scoped to the table’s storage location, and Pinot renews them before they expire. With gcs-adc, Pinot reads GCS as StarTree’s Google identity. Grant it storage.objects.get and storage.objects.list on the bucket; the Storage Object Viewer role covers both. Contact StarTree support for the identity to grant.

A table by storage path

Without Unity, set location to the Delta table’s root:
  • location must be an object-store path starting with s3://, s3a://, gs://, abfs:// or abfss://.
  • catalog_name, auth_type, token, client_id and client_secret are rejected, and so is storage.access_policy = 'unity'. There’s no catalog to vend credentials.
  • schema_name and table_name are optional. They only label the table.
  • For GCS, use storage.provider = 'gcs' and grant StarTree’s Google identity as above. For Azure, use a SAS token.

Table config

If you manage table configs directly, put these keys in the ExternalTableSyncTask section of the OFFLINE table config:
After the first sync, Pinot adds catalog.delta-unity.sourceIdentity to the config. Don’t change or remove it.

Run the first sync

DDL doesn’t run a sync. Wait for refresh_interval, or start one now:

Snapshots

  • snapshot_mode = 'latest', the default, starts from the newest version.
  • snapshot_mode = 'snapshot_id' with snapshot_id = '<id>' starts from a specific snapshot. The ID is Pinot’s encoded snapshot ID, not a Delta version number. Setting snapshot_id alone implies this mode.
  • snapshot_mode = 'earliest' isn’t supported.
  • After the first sync, every sync moves to the newest version.

What’s supported

  • Delta reader features: deletion vectors, column mapping, timestampNtz, type widening, V2 checkpoints, vacuumProtocolCheck, and variant types, including shredded variants. Partitioned and liquid-clustered tables work.
  • Catalog-managed tables (the catalogManaged table feature). Pinot reads the commits published to the table’s _delta_log. A commit Unity has accepted but not published yet isn’t visible until it’s published, so the table in Pinot can trail Databricks. To refuse these tables instead, add 'catalog.delta-unity.catalogManaged.readPublishedLog' = 'false'.

Limits

  • Snapshot size. One snapshot can list up to 100,000 data files and about 64 MiB of file metadata, which counts paths, statistics, partition values and inline deletion vectors. A larger snapshot fails without syncing part of it. Compact the table, or contact StarTree support about raising the limits.
  • Version number. Tables past Delta version 2,097,151 are refused.
  • Refused tables. Views, shallow clones, and Unity tables in other formats. Serve the source table or a deep clone instead of a shallow clone.
  • Refused features. Unknown reader features, type changes Pinot can’t apply to older files, and nested fields whose physical names differ from their logical names (column-mapping renames inside structs, arrays or maps). Top-level renames work.
  • Files outside the table. Data files or deletion vectors stored outside the table’s root are refused.
  • One source per table. On its first sync, Pinot binds the table to the Delta table’s identity. If the Delta table is dropped and recreated, or replaced, create a new Pinot table with a new name. Reusing the name of a deleted Pinot table can also fail, so pick a new name.
  • No switching formats. You can’t change an existing table between type = 'delta' and Iceberg. Create a new table.

Common errors

Errors from the catalog connection arrive wrapped as Failed to resolve the external table '<schema>.<table>' from the catalog: <cause>. Errors about the table itself, such as views, clones and unsupported features, arrive unwrapped.

Not supported

  • The Data Portal wizard.
  • Delta tables registered in catalogs other than Unity Catalog. Read them by location instead.