Skip to main content
Use the Data Portal wizard to connect a Databricks or OSS Unity Catalog and onboard a table. It works for Iceberg tables and Delta tables with UniForm turned on, including ones that use column mapping. Data files must be Parquet.

Prerequisites

Before starting, ensure you have:
  • StarTree Cloud 0.18 or later with the External Table feature enabled and tiered storage configured for your environment. Contact StarTree support if unsure.
  • A Unity Catalog set up as in Prepare Databricks: the table has Iceberg reads (UniForm) turned on if it’s a Delta table, you have a PAT or OAuth service-principal credentials with the all-apis scope, and the principal has the grants it needs. OSS Unity Catalog needs only a reachable server.
  • The Unity Catalog catalog name (used as the warehouse identifier) and the namespace/table you want to onboard.
  • Read access to the underlying S3 object storage. Unity Catalog vends short-lived storage credentials automatically for tables it manages, so static keys are usually unnecessary — but the storage region is always required.

Step 1: Open the External Tables

  1. Log in to Data Portal.
  2. In the left navigation, go to Tables.
  3. Click + Connect External Table.
The wizard opens with a connection configuration screen.

Step 2: Configure the Unity Catalog Connection

Choose Unity Catalog as the catalog type. Fill in the credentials and connection details: Details Metastore — how Data Portal authenticates with the Unity Catalog Iceberg REST API. For Personal Access Token: A token with a narrower scope fails at Validate Connection even though it’s valid. See Catalog authentication. For OAuth (Databricks service principal — recommended over a long-lived PAT for automated pipelines): Storage — credentials for reading the underlying Parquet data files. Unity Catalog vends short-lived storage credentials automatically for most tables — whatever you configure here acts as the fallback/override for tables where vending doesn’t apply. Region is always required, even with vended credentials, because Unity’s short-lived credentials don’t carry one.
The External ID used in the cross-account trust policy is provisioned by StarTree and filled into the connection automatically — the trust-policy steps shown in the form include it, so you never enter it by hand.
Click Validate Connection. Data Portal calls the catalog’s validate endpoint and confirms credentials and connectivity before proceeding.

Step 3: Browse and Select a Table

Once the connection is validated:
  1. Data Portal lists the available schemas (the field is labeled Database) in the Unity Catalog.
  2. Select a schema to expand its tables.
  3. Click the table you want to onboard.
Data Portal reads the Iceberg schema and derives a Pinot schema automatically.

Step 4: Review the Schema

The inferred Pinot schema is displayed for review. For External Tables this step is mostly read-only — columns can’t be added, removed, or renamed, and the inferred data types should be kept (overriding them can break segment generation). One thing is editable inline: the Pinot Field Type column lets you switch a column between Dimension, Metric, and Date-Time where its data type allows (for example, a LONG can be any of the three; a TIMESTAMP can only be Date-Time). Selecting Date-Time opens a dialog to set the value format and granularity. Multi-value columns are flagged in a dedicated column. Click Next when the schema looks correct.

Step 5: Configure the Table

Set the final table options: The sync schedule is fixed at every 5 minutes at creation (change it afterwards via the table config, or use Pause Sync / Resume Sync), and null handling is enabled automatically on the generated table config. Click Create Table to register the schema and table with Pinot. Data Portal automatically triggers the first onboarding run immediately after creation — no manual step required.

Step 6: Monitor Onboarding

Once the table is created, onboarding starts automatically. The table detail view shows the status in real time:
  • Running — the task is actively reading Iceberg snapshots and building Pinot segments.
  • Completed — onboarding finished successfully. The last ingested snapshot ID is shown.
  • Failed — onboarding encountered an error. The error message and the number of files discovered vs. segments generated are surfaced to help diagnose the issue.
For deeper observability — watcher status, checkpoint values, and per-snapshot file counts — see the Observability page.

Step 7: Query the table

Open Query Console and run:
You should see one row with the number of rows in the source table. If the count is 0 or lower than expected, wait until the sync status on the table page shows Completed, then run the query again. Next: speed up queries with indexes and caching.

Pause and resume sync

Pause Sync stops scheduled syncs. Resume Sync restarts them from where the last sync left off. A sync that’s already running finishes, and existing data isn’t touched. Find both on the table’s page in the Tables view.

Frequently Asked Questions

The Validate step fails — what should I check?
  • For Databricks with PAT: confirm the token is valid, hasn’t expired, and was issued with the all-apis scope, and that the workspace has Unity Catalog enabled. A scope-restricted token is the most common cause of a validate failure that looks like a bad credential.
  • For Databricks with OAuth2: confirm the token URI, client ID, and client secret are correct, and that the service principal has access to the catalog.
  • For OSS Unity Catalog: confirm the server is reachable from the cluster and the REST URI includes the correct path suffix (/api/2.1/unity-catalog/iceberg).
  • Verify the warehouse value matches the Unity Catalog catalog name exactly.

Table load or sync fails even though browsing worked — what should I check?
  • Confirm the storage Region is set — it’s required even when relying on Unity’s vended credentials, which don’t carry a region.
  • On Databricks, credential vending requires external data access enabled on the metastore and the EXTERNAL USE SCHEMA privilege on the schema for the principal behind your PAT or OAuth2 credentials. Without them, catalog browsing works but table loads fail. See Set up a service principal and grants.

Can I onboard multiple tables from the same catalog? Yes. After creating the first table, start the wizard again and reuse the same connection credentials. Each table is registered as an independent Pinot table with its own onboarding schedule.