#27327·risingwave

Iceberg connection validation rejects `bq://` (BigQuery catalog federation) and `bl://` REST warehouse paths

Author: tuantran0910Created Sep 27, 2026Updated Sep 27, 2026

Describe the bug

IcebergConnection::validate_connection (src/connector/src/connector_common/connection.rs) classifies warehouse.path by trying to parse it as an object-store URL. For Iceberg REST catalogs, upstream already treats bq:// (BigQuery catalog federation) as a non-URL warehouse identifier in src/connector/src/connector_common/iceberg/mod.rs and src/connector/src/sink/iceberg/create_table.rs, but this was not applied in connection.rs.

As a result, CREATE CONNECTION / ALTER CONNECTION with a bq:// warehouse fails DDL validation with Unsupported scheme: bq, even though the same configuration works at connector runtime.

The same gap affects the recommended Lakehouse runtime catalog warehouse format bl://projects/<PROJECT_ID>/catalogs/<CATALOG_ID> (fails with Unsupported scheme: bl).

By contrast, gs://<bucket> (single-bucket Lakehouse runtime catalog) works, because it is a parseable URL and is treated as an object-store path.

Error message/log

ERROR:  Failed to run the query

Caused by these errors (recent errors listed first):
  1: gRPC request to meta service (call `/ddl_service.DdlService/CreateConnection`) failed: Internal error
  2: Unsupported scheme: bq

For bl://projects/<PROJECT_ID>/catalogs/<CATALOG_ID> the last line is 2: Unsupported scheme: bl.

To Reproduce

sql
CREATE CONNECTION bq_conn WITH (
  type = 'iceberg',
  catalog.type = 'rest',
  catalog.uri = 'https://biglake.googleapis.com/iceberg/v1/restcatalog',
  warehouse.path = 'bq://projects/<PROJECT_ID>',
  catalog.security = 'google',
  gcp.auth.scopes = 'https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/bigquery',
  catalog.header = 'x-goog-user-project=<PROJECT_ID>'
);

Observed: fails with Unsupported scheme: bq.

Root cause: Url::parse("bq://projects/<PROJECT_ID>") succeeds (non-special scheme with authority: scheme bq, host projects), so the condition (url.is_err() || is_s3_tables) && is_rest_catalog is false. The code falls into the else branch, treats the host as an object-store bucket and eventually reaches bail!("Unsupported scheme: {scheme}"). bl://... fails the same way (scheme bl).

Expected behavior

REST-catalog warehouse identifiers that are not object-store paths should pass through, mirroring the existing behavior in iceberg/mod.rs and create_table.rs:

rust
let is_bq_catalog_federation = warehouse_path.starts_with("bq://");
let is_bl_catalog = warehouse_path.starts_with("bl://");
if (url.is_err() || is_s3_tables || is_bq_catalog_federation || is_bl_catalog) && is_rest_catalog {
    // REST-catalog warehouse identifier, not an object-store path
    None
}

Warehouse path schemes (Google Cloud Lakehouse)

All three use the same REST endpoint https://biglake.googleapis.com/iceberg/v1/restcatalog; the warehouse prefix selects the catalog type:

Scheme Catalog type Format Notes
gs:// Single-bucket Lakehouse runtime catalog (CATALOG_TYPE_GCS_BUCKET, legacy) gs://BUCKET[/path] exactly one bucket; catalog name is locked to the bucket name; already works in validation (valid URL → treated as object-store path)
bl:// Multi-bucket Lakehouse runtime catalog (CATALOG_TYPE_BIGLAKE, recommended) bl://projects/PROJECT_ID/catalogs/CATALOG_ID catalog name independent of buckets; up to 15 buckets (default_location + restricted_locations); read/write from OSS engines; supports credential vending
bq:// BigQuery catalog federation (CATALOG_TYPE_BIGQUERY) bq://projects/PROJECT_ID[/locations/LOCATION] proxy to BigQuery's internal catalog; read-only from OSS engines; no credential vending

Note: BigLake was renamed "Lakehouse for Apache Iceberg" (Apr 2026), but identifiers still use biglake (biglake.googleapis.com, gcloud biglake, CATALOG_TYPE_BIGLAKE, the bl:// scheme). bl:// is the recommended format for new catalogs, so its rejection is at least as important as bq://.

How did you deploy RisingWave?

via RiseDev (./risedev d) on main.

The version of RisingWave

PostgreSQL 8.3-RisingWave-3.2.0-alpha (main @ 4a6185456e)

Additional context

  • Verified end-to-end against real BigQuery catalog federation (warehouse.path = 'bq://projects/<PROJECT_ID>', catalog.uri = 'https://biglake.googleapis.com/iceberg/v1/restcatalog', catalog.security = 'google'): after applying the fix and enabling the Lakehouse API on the project, CREATE CONNECTION succeeds and the REST round-trip completes.
  • The three relevant code paths:
    • connector_common/connection.rs — DDL validation, missing both bq:// and bl://.
    • connector_common/iceberg/mod.rs — has bq:// but missing bl://.
    • sink/iceberg/create_table.rs — has bq:// but missing bl://.
  • GCP references: BigQuery catalog federation, About the Iceberg REST catalog endpoint, Iceberg REST catalog endpoint concepts.

Source: risingwavelabs/risingwave