> ## Documentation Index
> Fetch the complete documentation index at: https://docs.startree.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Lakehouse (BigLake): Onboarding via SQL DDL

> Read Iceberg tables from Google's Lakehouse runtime catalog (formerly BigLake metastore) with one CREATE TABLE ... WITH statement.

> [!WARNING]
>
> **Preview, StarTree Cloud 0.19 and later.** Contact StarTree support to confirm it's available for your environment. The Data Portal wizard doesn't support this catalog, so you onboard tables with [SQL DDL](#create-the-table) or a [table config](#table-config).

Google renamed BigLake to Lakehouse in April 2026, and BigLake metastore is now the Lakehouse runtime catalog. Google's APIs and IAM names still say BigLake, and so does the SQL option: `catalog_type = 'biglake'`.

## What it reads

Pinot reads Iceberg v2 tables with Parquet data files through Google's [Iceberg REST catalog endpoint](https://docs.cloud.google.com/lakehouse/docs/set-up-lakehouse-iceberg-rest-catalog). Pinot only reads from the catalog; it never writes to it.

The `catalog_name` option picks the catalog, and the catalog decides which storage you can use:

| `catalog_name` | Google catalog | Storage and access policy |
| - | - | - |
| `gs://<bucket>` | Lakehouse runtime catalog for one bucket | GCS, with `gcs-adc` or `biglake-vended` |
| `bl://projects/<project>/catalogs/<catalog>` | Lakehouse runtime catalog that spans buckets | GCS, with `gcs-adc` or `biglake-vended` |
| `bl://projects/<project>/catalogs/<catalog>` | Lakehouse catalog federated to AWS Glue (a Google preview) | S3, with `biglake-vended` only |
| `bq://projects/<project>` or `bq://projects/<project>/locations/<location>` | BigQuery-managed Iceberg tables, through Google's read-only [BigQuery catalog federation](https://docs.cloud.google.com/lakehouse/docs/use-catalog-federation) | GCS, with `gcs-adc` only |

A `gs://` value is a bucket name with no path. `<project>` is a project ID or a project number.

## How Pinot authenticates

**To the catalog**, with Google Application Default Credentials (ADC) only. Pinot calls the catalog as your StarTree environment's Google identity and doesn't take keys or tokens. Contact StarTree support for the identity to grant, and to confirm your environment has one.

Every catalog request names `catalog_quota_project` as its quota project, so Google bills catalog usage there. It can be a different project from the one that owns the catalog.

**To storage**, with the access policy you set in `storage.access_policy`:

| Access policy | How Pinot reads the data files |
| - | - |
| `gcs-adc` (default for GCS) | Pinot reads GCS as the same StarTree Google identity. You grant that identity read access on the buckets. |
| `biglake-vended` | Pinot asks the catalog for short-lived credentials scoped to the table and renews them before they expire. The catalog's own service account needs access to the buckets. |

## Prerequisites

In Google Cloud:

* **The BigLake API is enabled** on the quota project.
* **StarTree's identity can use the quota project.** It needs the `serviceusage.services.use` permission there.
* **StarTree's identity can read the catalog**, its namespaces and its tables. With `biglake-vended`, it must also be allowed to request vended credentials. Google's [Iceberg REST catalog setup](https://docs.cloud.google.com/lakehouse/docs/set-up-lakehouse-iceberg-rest-catalog) lists the access each step needs.
* **For `gcs-adc`:** StarTree's identity has `storage.objects.get` and `storage.objects.list` on every bucket that holds the table's files. The **Storage Object Viewer** role covers both.
* **For `biglake-vended` on GCS:** [credential vending](https://docs.cloud.google.com/lakehouse/docs/credential-vending) is turned on for the catalog, and the catalog's service account can read the buckets.
* **For a `bq://` catalog:** the access Google lists for [querying BigQuery tables through the Iceberg REST endpoint](https://docs.cloud.google.com/lakehouse/docs/use-catalog-federation).
* **For S3:** a [Lakehouse connection to AWS Glue](https://docs.cloud.google.com/lakehouse/docs/set-up-cross-cloud-connection-aws-glue) that lets the catalog read your Glue tables and vend S3 credentials.

## Create the table

With GCS:

```sql theme={null}
CREATE TABLE lakehouse_trades WITH (
  type = 'iceberg',
  catalog_type = 'biglake',
  catalog_uri = 'https://biglake.googleapis.com/iceberg/v1/restcatalog',
  catalog_quota_project = '<billing-project>',
  catalog_name = 'bl://projects/<catalog-project>/catalogs/<catalog>',
  schema_name = '<namespace>',
  table_name = '<table>',
  storage.provider = 'gcs',
  storage.access_policy = 'gcs-adc',
  refresh_interval = '5m'
);
```

Send it to `POST /sql/ddl` as described in [SQL DDL](https://docs.startree.ai/corecapabilities/external-table/sql-ddl.md). Add `?dryRun=true` to compile and validate without creating anything. Pinot connects to the catalog, infers the schema, reads one data file to check storage access, and creates an OFFLINE table.

* **`catalog_uri`** is `https://biglake.googleapis.com/iceberg/v1/restcatalog`, or a [regional endpoint](https://docs.cloud.google.com/lakehouse/docs/regional-endpoints) of the form `https://biglake.<location>.rep.googleapis.com/iceberg/v1/restcatalog`. Any other host, path, port or query string is rejected.
* **`catalog_quota_project`** is required. It takes a project ID or project number.
* **`storage.provider`** is required. With GCS you can leave out `storage.access_policy`, since it defaults to `gcs-adc`. For vended credentials, set `storage.access_policy = 'biglake-vended'`.
* **No auth options.** Leave out `token`, `client_id`, `client_secret`, `oauth_scope` and `oauth_token_uri`. `auth_type = 'google-adc'` is accepted and changes nothing; any other `auth_type` is rejected.
* **Row deletes.** If the table has Iceberg v2 row deletes, add `'enableDeletionVectors' = 'true'`. Without it, deleted rows stay visible. See [Deletion vectors](https://docs.startree.ai/corecapabilities/external-table/deletion-vectors.md).

### S3 through a catalog federated to Glue

```sql theme={null}
CREATE TABLE federated_trades WITH (
  type = 'iceberg',
  catalog_type = 'biglake',
  catalog_uri = 'https://biglake.googleapis.com/iceberg/v1/restcatalog',
  catalog_quota_project = '<billing-project>',
  catalog_name = 'bl://projects/<catalog-project>/catalogs/<federated-catalog>',
  schema_name = '<namespace>',
  table_name = '<table>',
  storage.provider = 's3',
  storage.access_policy = 'biglake-vended',
  storage.region = 'us-east-1',
  refresh_interval = '5m'
);
```

* `storage.region` is required. Set it to the bucket's AWS region.
* `biglake-vended` is the only way to read S3 here. `storage.access_key`, `storage.secret_key`, `storage.session_token`, `storage.endpoint`, `storage.sas_token` and `storage.credential_prefix` are rejected.
* Google offers Glue federation as a preview. Test it with your own tables before you rely on it.
* Keep source files immutable. Write compaction and rewrite output to new object keys instead of overwriting files in place.

### Table config

If you manage table configs directly, put these keys in the `ExternalTableSyncTask` section of the OFFLINE table config:

```json theme={null}
{
  "catalogType": "iceberg-rest",
  "executor": "controller",
  "schedule": "0 */5 * * * ?",
  "catalog.iceberg-rest.serviceType": "biglake",
  "catalog.iceberg-rest.restUri": "https://biglake.googleapis.com/iceberg/v1/restcatalog",
  "catalog.iceberg-rest.warehouse": "bl://projects/<catalog-project>/catalogs/<catalog>",
  "catalog.iceberg-rest.auth.rest.quotaProject": "<billing-project>",
  "catalog.iceberg-rest.table.namespace": "<namespace>",
  "catalog.iceberg-rest.table.tableName": "<table>",
  "sourceStorageProvider": "gcs",
  "externalTableAccessPolicy": "biglake-vended"
}
```

| Key | Value |
| - | - |
| `catalogType`, `executor` | Must be `iceberg-rest` and `controller`. Leave out `enabled`. |
| `schedule` | How often Pinot checks for a new snapshot, as a Quartz cron expression. `refresh_interval = '5m'` in SQL becomes `0 */5 * * * ?`. |
| `serviceType` | `biglake`. |
| `restUri`, `warehouse`, `auth.rest.quotaProject` | The SQL options `catalog_uri`, `catalog_name` and `catalog_quota_project`. |
| `table.namespace`, `table.tableName` | The namespace and table in the catalog. |
| `sourceStorageProvider` | `gcs` or `s3`. For `s3`, also add `catalog.iceberg-rest.auth.storage.region` with the bucket's AWS region. |
| `externalTableAccessPolicy` | `gcs-adc` or `biglake-vended`, following the table in [What it reads](#what-it-reads). |

### Run the first sync

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

```bash theme={null}
curl -X POST "$BASE_URL/tasks/schedule?taskType=ExternalTableSyncTask&tableName=lakehouse_trades_OFFLINE"
```

## What's rejected

* Any catalog authentication other than Google ADC.
* Azure storage, and S3 with anything other than `biglake-vended`.
* `biglake-vended` with a `bq://` catalog, because Google's BigQuery federation doesn't vend storage credentials.
* S3 with a `gs://` or `bq://` catalog.
* Storage keys with GCS: `storage.region`, `storage.access_key`, `storage.secret_key`, `storage.session_token`, `storage.endpoint`, `storage.sas_token` and `storage.credential_prefix`.
* The Data Portal wizard.

## Common errors

Errors from the catalog connection arrive wrapped as `Failed to resolve the external table '<namespace>.<table>' from the catalog: <cause>`. Match on the cause.

| Error contains | Cause |
| - | - |
| `BigLake catalog authentication requires Google ADC.` | The statement sets `token`, `client_id`, `client_secret`, `oauth_scope`, `oauth_token_uri`, or an `auth_type` other than `google-adc`. Remove them |
| `requires the 'catalog_quota_project' option.` | `catalog_quota_project` is missing |
| `catalog_quota_project requires catalog_type = 'biglake'.` | `catalog_quota_project` is set on another catalog type |
| `Google Lakehouse requires auth.rest.quotaProject to specify the Google Cloud quota project` | `catalog_quota_project` isn't a valid project ID or project number |
| `Google Lakehouse requires a Google global or regional Iceberg REST endpoint` | `catalog_uri` isn't one of the two endpoint forms |
| `Google Lakehouse requires a gs:// bucket, bl:// catalog, or bq:// project warehouse` | `catalog_name` is missing or not in one of the forms in [What it reads](#what-it-reads). A `gs://` value can't include a path |
| `Google Lakehouse requires gcs with gcs-adc or biglake-vended, or s3 with biglake-vended` | The storage provider and access policy don't go together, or `storage.provider` is missing |
| `BigQuery catalog federation does not vend storage credentials` | `biglake-vended` with a `bq://` catalog. Use `gcs-adc` |
| `S3 vending requires a federated bl:// Lakehouse warehouse` | S3 storage with a `gs://` or `bq://` catalog |
| `requires the 'storage.region' option.` | S3 storage without `storage.region` |
| `Option '<key>' is incompatible with storage.provider = '<provider>'.` | A storage option the provider doesn't take. See [What's rejected](#whats-rejected) |
| `Unable to obtain Google Lakehouse catalog ADC` | Pinot couldn't get a Google token for your environment's identity. Contact StarTree support |
| `Google Lakehouse catalog request failed with HTTP 403` | Google refused the request. Check that the BigLake API is on for the quota project, that StarTree's identity has `serviceusage.services.use` there, and that it can read the catalog. Google's own error text isn't passed through |
| `Unable to obtain scoped storage credentials from Google Lakehouse` | With `biglake-vended`, the catalog didn't vend credentials. Check that vending is on for the catalog and that StarTree's identity may request them |
| `Cannot read the selected GCS data file. Check the source storage authorization and object location.` | The check Pinot runs at create time couldn't read a data file. With `gcs-adc`, the bucket grant is missing |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.