Trendveris
Live Coverage
AI & ML

BigQuery Queries Databricks Iceberg Tables In Place Through Google Cloud Lakehouse

Google Cloud Lakehouse lets BigQuery query Databricks Iceberg data in place, with federated access, partition pruning and cross-cloud caching.

Oct 29, 2026 | 3 min read
Sign in to save

BigQuery can now query Databricks-managed Apache Iceberg tables where they’re stored, giving data teams a way to pair Databricks’ Spark workloads with BigQuery analytics without copying datasets between platforms. The practical shift is architectural: shared open-format files can serve both engines, while Lakehouse handles catalog access and BigQuery applies its query engine directly to the data.

That arrangement avoids a replication pipeline, along with the extra storage, delay and duplicated access controls those pipelines can bring. It doesn’t make every query instantaneous or every cloud transfer free, but it gives teams a direct path to broader analytics while keeping their data in place.

image1

One set of files, two query environments

For tables in Google Cloud Storage (GCS), Databricks writes Parquet data and generates Iceberg-compatible metadata alongside its native Delta logs. Lakehouse reads that Iceberg metadata, allowing BigQuery to plan queries against the existing files rather than ingesting a separate copy.

New table changes become visible after Lakehouse’s next scheduled metadata refresh, which can run as often as every five minutes. That refresh interval is a practical detail for teams designing workflows that depend on data freshness: the platforms share storage, but visibility still follows the metadata update schedule.

The same model can extend beyond GCS. Lakehouse supports federation to external environments such as Amazon S3 and Azure Blob Storage through the Apache Iceberg REST Catalog API and cross-cloud connections. Administrators choose a Google Cloud location for each federated catalog, with a location near the data generally preferable. BigQuery can then read Parquet files in place across clouds, though remote-cloud egress charges still apply. Cross-Cloud Interconnect for AWS and Lakehouse caching can help reduce the cost of repeated or remote reads.

Catalog federation supplies current metadata and temporary access

The integration relies on the Iceberg REST Catalog API rather than manually pointing BigQuery queries at fixed metadata paths. Databricks Unity Catalog acts as the metadata layer; a BigQuery administrator configures a Lakehouse runtime catalog and federated connection to it.

At query time, Lakehouse asks Unity Catalog for the table’s current state. Credential vending issues short-lived tokens so BigQuery can temporarily read the relevant GCS data. That approach links catalog discovery and storage access without requiring users to manage static credentials in individual queries.

Lakehouse also supports read and write interoperability across engines on its open Iceberg foundation. Teams can run multi-statement SQL commands in BigQuery against federated data, extending the connection beyond read-only discovery. The exact operations available depend on the table and platform setup, so teams should validate their workflows against the supported configuration.

BigQuery can skip files before scanning them

Iceberg metadata gives BigQuery information about the table’s files and their contents. During query planning, BigQuery uses manifests and column statistics to rule out files that can’t match a query’s filters. The engine then reads only the remaining data, which can reduce bytes scanned and on-demand slot consumption.

Partition pruning works with ordinary WHERE filters, especially when partition columns are compared with literal values. Iceberg’s hidden partitioning means users can filter on logical columns such as timestamps without knowing how the files are arranged in storage. One constraint matters for Databricks-managed Iceberg tables: they don’t support partition transforms. Databricks recommends liquid clustering instead.

BigQuery reads Iceberg manifest files as it plans each query, so Iceberg tables don’t require a metadata cache to be enabled. For cross-cloud data, Lakehouse caching is available in Preview: it retains retrieved data blocks in Google Cloud, so repeat queries can read those blocks locally. This can improve repeat access to data stored in places such as S3, while the manifests continue to guide which files each query needs.

File layout still shapes query performance

Zero-copy access doesn’t remove the operational work of keeping a lakehouse efficient. Frequent writes, streaming jobs and continuous ingestion can leave a table with thousands of small Parquet files. BigQuery must establish connections to those files and inspect their metadata, adding work that can eat into the gains from vectorized execution.

Routine compaction combines small files into larger ones. Databricks offers Liquid Clustering to adjust file layouts based on access patterns, as well as table management tools. For manual compaction, teams can run OPTIMIZE on a Databricks table:

-- Run on Databricks to compact small files
OPTIMIZE customer_events;

For Iceberg tables managed outside Databricks, the source provides a rewrite operation using the binpack strategy and a target file size of 268,435,456 bytes, with a minimum of 67,108,864 bytes:

CALL my_catalog.system.rewrite_data_files(
  table => 'default.customer_events',
  strategy => 'binpack',
  options => map(
    'target-file-size-bytes', '268435456',
    'min-file-size-bytes', '67108864'
  )
);

Binpack prioritizes balancing file sizes. The resulting files are typically between 256 MB and 512 MB, a range that can improve BigQuery scan throughput. Other sorting approaches can organize data around selected columns when that better fits the workload.

VACUUM controls accumulated storage

Iceberg snapshots preserve table history as records change and files are rewritten. That history supports time-travel use cases, but files no longer referenced by active snapshots can accumulate in GCS and increase storage costs. Databricks’ VACUUM operation removes eligible unreferenced files.

ALTER TABLE customer_events
SET TBLPROPERTIES ('delta.deletedFileRetentionDuration' = '7 days');

VACUUM customer_events FULL;

The seven-day retention setting shown here is a standard threshold before cleanup. Keeping a delay gives active analytical jobs time to finish without losing files they still need, and preserves a window for historical recovery. Teams can schedule compaction and cleanup themselves or use Predictive Optimization to help manage table maintenance.

For organizations already using Databricks for engineering and BigQuery for concurrent analytics, the main benefit is a simpler route between the two: keep Parquet data in its existing location, federate its Iceberg catalog, and let BigQuery prune files using table metadata. Performance and cost will still depend on file sizes, query patterns, refresh timing and cloud location. Regular OPTIMIZE and VACUUM help keep those factors manageable as workloads grow.

Teams can register Databricks Iceberg tables through a Lakehouse runtime catalog and evaluate the setup against their own freshness, security and cross-cloud requirements. Google’s documentation describes the Databricks connection steps.

Source: Pramod Niralakeri · cloud.google.com
Sign in to join the discussion.